Components / Buttons
Roll Button
On hover, each letter rolls up to reveal a colored copy, one after another.
Installation
Requires React 18+ and Tailwind CSS.
- 1
Install dependencies
None. This component only needs React and Tailwind.
- 2
Add the component
Copy the code from the Code tab above into
components/ui/roll-button.tsx. - 3
Use it
example.tsximport { RollButton } from "@/components/ui/roll-button"; export default function RollButtonDemo() { return <RollButton text="Start your project" />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | — | Button label. |
| ...props | ComponentProps<"button"> | — | Any native button prop. |