Sidebar
Composable sidebar column structure for menus, grouped lists, and app-owned destinations.
Controls
Content
Live activity
import {
LiveAgentActivityBar,
SidebarBody,
SidebarContent,
SidebarControl,
SidebarHeader,
SidebarHeaderTitle,
SidebarItem,
SidebarList,
SidebarLiveActivity,
SidebarRoot,
SidebarSection,
SidebarSectionAttention,
SidebarSectionChevron,
SidebarSectionControls,
SidebarSectionCount,
SidebarSectionDisclosure,
SidebarSectionEmpty,
SidebarSectionHeader,
SidebarSectionTitle,
SidebarSectionTrailing,
} from "raft-ui";
<SidebarRoot>
<SidebarHeader>
<SidebarHeaderTitle />
<SidebarControl />
</SidebarHeader>
<SidebarBody>
<SidebarContent>
<SidebarSection>
<SidebarSectionHeader>
<SidebarSectionDisclosure>
<SidebarSectionTitle />
<SidebarSectionCount />
<SidebarSectionChevron />
</SidebarSectionDisclosure>
<SidebarSectionTrailing>
<SidebarSectionAttention />
<SidebarSectionControls>
<SidebarControl />
</SidebarSectionControls>
</SidebarSectionTrailing>
</SidebarSectionHeader>
<SidebarList>
<SidebarItem />
</SidebarList>
<SidebarSectionEmpty />
</SidebarSection>
</SidebarContent>
</SidebarBody>
<SidebarLiveActivity>
<LiveAgentActivityBar />
</SidebarLiveActivity>
</SidebarRoot>API#WIP
SidebarItem and its row parts have a separate, complete API reference on the SidebarItem page. AppShellSidebarSlot is documented with the other shell regions on the AppShell page.
| Prop | Type | Default | Description |
|---|---|---|---|
...props | react-resizable-panels group props | — | Groups the sidebar and adjacent resizable columns. |
| Prop | Type | Default | Description |
|---|---|---|---|
...props | react-resizable-panels panel props | — | Defines one resizable column in the group. |
| Prop | Type | Default | Description |
|---|---|---|---|
...props | react-resizable-panels separator props | — | Resize handle between adjacent panels. |