Skip to content

    Browse components

    Arc Sidebar

    A sectioned nav whose active marker arcs between rows, shoves the label aside on landing and crossfades into each section's ink. Works as a static rail or a drawer.

    Credit: Calamansi UI (MIT)

    Open
    Customize
    dot
    pip
    bar
    glow

    Installation

    npx shadcn@latest add @glint-ui/arc-sidebar

    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/arc-sidebar.json

    Usage

    import { ArcSidebar } from "@/components/ui/arc-sidebar";
    
    <ArcSidebar
      sections={[
        { label: "Getting started", items: [{ label: "Overview" }, { label: "Install" }] },
        { label: "Foundations", color: "#7aa2ff", items: [{ label: "Colour" }, { label: "Spacing" }] },
      ]}
      marker="pip"
    />

    Props

    PropTypeDefaultDescription
    marker"dot" | "pip" | "bar" | "glow""dot"Marker shape.
    fadebooleantrueFade the list at both edges (adds 3rem of padding with it).
    navLabelstring"Sidebar"Accessible name of the nav, and the drawer's title.
    sectionsReactNode—`{ label?, color?, items: { label, href?, icon?, badge?, disabled? }[] }[]`.
    markerColorstring"var(--primary, #b4e84c)"Marker colour, and the fallback for sections without `color`.
    activeHrefstring—Mark the row whose `href` matches (route-driven).
    valuenumber—Active row as a flat index (controlled).
    defaultValuenumber0Active row on mount when uncontrolled.
    onChangeReactNode—`(index, item) => void`, fired on selection.
    onNavigateReactNode—`(item) => void`, fired on every selection.
    headerReactNode—Pinned above the list.
    footerReactNode—Pinned below the list.
    variant"rail" | "drawer""rail"Static panel or sliding overlay.
    position"fixed" | "absolute""fixed"Drawer only: cover the viewport (and lock scroll) or the nearest positioned ancestor.
    openbooleanfalseDrawer only: whether it is showing.
    onOpenChangeReactNode—Drawer only: `(open) => void` on Escape, scrim or close button.
    classNamestring—Extra classes for the root element.