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-button

Dependencies

motiontailwindcss

Tags

ButtonsFree componentMIT

Usage

After installing, it lives at components/flip-button.tsx

app/example.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

PropTypeDefaultWhat it does
childrenstring–The label. Each letter flips on its own.
variant"primary" | "ghost""primary"Filled, or outlined. Only primary leans toward the cursor.
arrowbooleantrue for primaryShows a trailing arrow that nudges on hover.
hrefstring–Renders a link instead of a button.
activebooleanfalseShows the hover state without a pointer, e.g. for a demo.
classNamestring–Classes for the button.

Want a whole page built like this?