Imagine ArtImagine Art

Side Navigation

View in Figma

A collapsible vertical sidebar with nested items, icon-only mode, and badge indicators.

Navigation

Import

import { SideNav } from "@/components/ui"

API

PropTypeDefaultDescription
itemsSideNavItem[]—Navigation items with label, href, icon, children, badge.
collapsedboolean—Whether the sidebar is in collapsed icon-only mode.
onCollapse(collapsed: boolean) => void—Callback when collapse state changes.
headerReactNode—Content above the navigation items.
footerReactNode—Content below the navigation items.

Examples