Appearance
Function: Sidebar()
ts
function Sidebar(props: UiSidebarProps): Block;Defined in: src/renderer/blocks/index.ts:1778
Experimental
Sidebar — collapsible vertical navigation panel with grouped items, optional icons, badges, and sub-items.
Parameters
| Parameter | Type |
|---|---|
props | UiSidebarProps |
Returns
Example
ts
Sidebar({
groups: [
{
key: 'workspace',
label: 'Workspace',
items: [
{value: 'inbox', label: 'Inbox'},
{value: 'calendar', label: 'Calendar'},
],
},
],
activeItem: 'inbox',
});