Skip to content

    Browse components

    Hover Shelf

    macOS-style toolbar where icons magnify as the cursor passes.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/hover-shelf

    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/hover-shelf.json

    Usage

    import { HoverShelf } from "@/components/ui/hover-shelf";
    
    <HoverShelf items={[{ label: "Home", icon: <HomeIcon /> }, { label: "Search", icon: <SearchIcon /> }]} />

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of { label, icon, onClick }.
    baseSizenumber48Resting icon size in px.
    magnificationnumber80Icon size under the cursor, in px.
    distancenumber140Px where magnification fades out.
    classNamestring—Extra classes for the root element.