Easeout LabFlip Button
Flip Button
A fill sweeps in, the label flips letter by letter, and the primary variant leans toward the cursor on a spring.
Install
npx shadcn add@easeout/flip-buttonDependencies
motiontailwindcss
Tags
ButtonsFree componentMIT
Usage
After installing, it lives at components/flip-button.tsx
import { FlipButton } from "@/components/flip-button"
export default function Example() {
return (
<div className="flex gap-3">
<FlipButton href="/signup">Get started</FlipButton>
<FlipButton variant="ghost" href="/docs">
Read the docs
</FlipButton>
</div>
)
}
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
children | string | – | The label. Each letter flips on its own. |
variant | "primary" | "ghost" | "primary" | Filled, or outlined. Only primary leans toward the cursor. |
arrow | boolean | true for primary | Shows a trailing arrow that nudges on hover. |
href | string | – | Renders a link instead of a button. |
active | boolean | false | Shows the hover state without a pointer, e.g. for a demo. |
className | string | – | Classes for the button. |