Skip to content

    Browse components

    Layered Button

    A 3D keycap of stacked offset layers that spread on hover and compress on press.

    Open
    Customize

    Installation

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

    Usage

    import { LayeredButton } from "@/components/ui/layered-button";
    
    <LayeredButton layers={3} depth={4}>Press me</LayeredButton>

    Props

    PropTypeDefaultDescription
    childrenReactNode—Button label.
    layersnumber3Number of layers stacked under the face.
    depthnumber4Px between layers at rest.
    classNamestring—Extra classes for the root element.