wise-ui

Data & Lists

Backgrounds

Cards

Navigation

Text

Buttons

Layout

Gradient Sidebar

Full-featured sidebar with animated drifting gradient orbs, hierarchical menus, sliding active indicator, and collapsible layout.

wise-ui

Main

Settings

JP

Jane Park

jane@acme.co

Dashboard

Navigate the sidebar to switch views.

Installation

npx shadcn@latest add https://wise-ui.com/r/gradient-sidebar.json

Props

PropTypeDefaultDescription
sectionsGradientSidebarSection[]-Array of sections, each with optional `title` and `items`.
activeIdstring-ID of the currently active item (sliding highlight).
onItemClick(item: GradientSidebarItem) => void-Called when any item is clicked.
headerReactNode-Brand/logo slot rendered at the top.
footerReactNode-User/profile slot rendered at the bottom.
collapsed / defaultCollapsedbooleanfalseControlled or uncontrolled collapse state.
onCollapsedChange(collapsed: boolean) => void-Called when the collapse state changes.
widthnumber256Expanded sidebar width in pixels.
collapsedWidthnumber64Collapsed sidebar width in pixels.
colorA / colorB / colorCstringteal / purple / teal-accentColors for the three animated gradient orbs.
overlayOpacitynumber0.55Opacity of the semi-transparent backdrop overlay.