Skip to content

    Browse components

    Animated Button

    On hover a slanted fill sweeps across while the label slides out and an arrow slides in.

    Open
    Customize
    sm
    md
    lg

    Installation

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

    Usage

    import { AnimatedButton } from "@/components/ui/animated-button";
    
    <AnimatedButton size="lg">Get started</AnimatedButton>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Button label.
    iconReactNode—Icon that slides in on hover. Defaults to an arrow.
    size"sm" | "md" | "lg""md"Button size.
    classNamestring—Extra classes for the root element.