Skip to content

    Browse components

    File Lift

    A folder whose flap tips open on hover or focus so its files float up and fan out, then settle back in; click pins it open.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/file-lift

    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/file-lift.json

    Usage

    import { FileLift } from "@/components/ui/file-lift";
    
    <FileLift label="Design" files={["brief.pdf", "logo.svg"]} onOpenChange={setOpen} />

    Props

    PropTypeDefaultDescription
    labelstring"Design"Folder name.
    filesstring[]["brief.pdf","moodboard.png","logo.svg","notes.md"]File names (first four are drawn); the badge shows the total.
    colorstring"#60a5fa"Folder color.
    defaultOpenbooleanfalseStart pinned open.
    openReactNode—Controlled pinned-open state. Pair with onOpenChange.
    onOpenChangeReactNode—Called when a click or Enter pins / unpins the folder.
    classNamestring—Extra classes for the root element.