Skip to content

    Browse components

    Burn Button

    Hold to light a spark that burns along the border; if it makes it all the way round, it bursts. Works with Space and Enter.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/burn-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/burn-button.json

    Usage

    import { BurnButton } from "@/components/ui/burn-button";
    
    <BurnButton onComplete={() => launch()}>Hold to launch</BurnButton>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Button label.
    durationnumber1600Ms the button must be held.
    colorstring"#fb923c"Spark and burst color.
    onCompleteReactNode—Called once the fuse finishes burning.
    classNamestring—Extra classes for the root element.