Browse components
Stagger Button
Each letter of the label rolls upward one after another on hover.
Installation
npx shadcn@latest add @glint-ui/stagger-buttonFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/stagger-button.json
Usage
import { StaggerButton } from "@/components/ui/stagger-button";
<StaggerButton stagger={25}>Explore the docs</StaggerButton>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | "Explore the docs" | Button label (plain text). |
| stagger | number | 25 | Ms between each letter starting to roll. |
| duration | number | 450 | Ms each letter takes to roll. |
| className | string | — | Extra classes for the root element. |