Skip to content

    Browse components

    Stagger Button

    Each letter of the label rolls upward one after another on hover.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/stagger-button

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/stagger-button.json

    Usage

    import { StaggerButton } from "@/components/ui/stagger-button";
    
    <StaggerButton stagger={25}>Explore the docs</StaggerButton>

    Props

    PropTypeDefaultDescription
    childrenstring"Explore the docs"Button label (plain text).
    staggernumber25Ms between each letter starting to roll.
    durationnumber450Ms each letter takes to roll.
    classNamestring—Extra classes for the root element.