Skip to content

Sidebar

A responsive collapsible sidebar with full keyboard navigation. Supports icon-only collapsed mode, mobile overlay, and cookie-persisted state.

$cookest-ui add sidebar

Full Sidebar

The complete Cookest app sidebar with groups, icons, and a trigger button. Click the toggle to collapse it.

Dashboard

Welcome back, Chef Marco! ๐Ÿ‘‹

You have 3 recipes scheduled for this week. Click the โ† toggle to collapse the sidebar.

Recipes

148

Collections

12

Meal Plans

5

This Week

3 meals

PropTypeDefaultDescription
SidebarProviderReactNodeโ€”Root context provider. Controls open state and persistence.
defaultOpenbooleantrueDefault open state (uncontrolled).
collapsible"offcanvas" | "icon" | "none""offcanvas"How the sidebar collapses โ€” icon-only or off-screen.
side"left" | "right""left"Which side the sidebar is anchored to.
SidebarTriggerโ€”โ€”A toggle button to open/close the sidebar.
SidebarInsetReactNodeโ€”The main content area beside the sidebar.