Tear Button - React Component | Kokonut UI

Tear Button

A confirm button you tear off like a ticket stub, hole by hole.

Install with

Agentbunnpmpnpm

Open in

Copy code

Add the tear-button component from Kokonut UI to this project with npx shadcn@latest add https://kokonutui.com/r/tear-button.json, then show me how to use it.

no extra packages

Delete workspace

Tear off the stub to confirm Workspace deleted Kept in trash for 30 days

Tear

Redeem coupon Tear off to use 20% off Coupon redeemed 20% off applied at checkout

Tear

Cancel Pro plan Tear off to end your plan Plan cancelled Access until 14 November

Tear

PRO

Pay Button and more like it are in Kokonut UI Pro

Installation

Tear Button is a free, open-source React component in the Kokonut UI Buttons collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/tear-button.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/tear-button

Usage

import TearButton from "@/components/kokonutui/tear-button";

export default function Example() {
  return <TearButton />;
}

Props

Prop Name Type Default Description
tone keyof typeof TONES `