Skip to content

    Browse components

    File Pocket

    A folder that springs open on hover or click, fanning out the paper cards tucked inside.

    Open
    Customize

    Installation

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

    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-pocket.json

    Usage

    import { FilePocket } from "@/components/ui/file-pocket";
    
    <FilePocket color="#5b8cff" label="Projects" items={[<img src="/a.jpg" alt="" />, <img src="/b.jpg" alt="" />]} />

    Props

    PropTypeDefaultDescription
    colorstring"#5b8cff"Folder color.
    sizenumber180Folder width in px.
    labelstring"Projects"Text under the folder.
    openOnHoverbooleantrueOpen while hovered, not only on click.
    itemsReactNode—Up to three paper cards revealed when open.
    classNamestring—Extra classes for the root element.