SidebarProvider
Overview
Provider component that manages sidebar state and provides context to all child sidebar components.
Theme entry: SidebarProvider
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| themeOverride | String|Object|Array | null | A partial theme object merged with the component's default theme; accepts a class string, class array, or theme object. | |
| class | import('vue').HTMLAttributes['class'] | undefined | Additional CSS classes to apply to the root element. | |
| defaultOpen | boolean | () => !defaultDocument?.cookie.includes(`${SIDEBAR_COOKIE_NAME}=false`) | Whether the sidebar is open by default. Reads from cookie if available. | |
| open | boolean | undefined | Controlled open state. |
Slots
default
Slot.
Events
| Name | Description |
|---|---|
update:open | Emitted when the open state changes. |
Source
client/lib/navigation/sidebar/SidebarProvider.vue