Skip to content

    Browse components

    Wavy Button

    Liquid sloshes at the bottom and rises in a rolling SVG wave to fill the button on hover.

    Open
    Customize

    Installation

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

    Usage

    import { WavyButton } from "@/components/ui/wavy-button";
    
    <WavyButton restLevel={14}>Dive in</WavyButton>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Button label.
    speednumber2.4Seconds per wave cycle.
    restLevelnumber14Liquid level at rest, % of the button height.
    classNamestring—Extra classes for the root element.