Sidebar

Composable sidebar column structure for menus, grouped lists, and app-owned destinations.

Preview#

Chat
Opened proj-uiux
Preparing the next release candidate
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.

PropTypeDefaultDescription
...propsreact-resizable-panels group propsGroups the sidebar and adjacent resizable columns.
PropTypeDefaultDescription
...propsreact-resizable-panels panel propsDefines one resizable column in the group.
PropTypeDefaultDescription
...propsreact-resizable-panels separator propsResize handle between adjacent panels.
PropTypeDefaultDescription
...propsdiv propsFull-height sidebar frame that keeps the header and scroll body aligned.
PropTypeDefaultDescription
...propsdiv propsHeader layout slot for app-owned navigation and controls.
PropTypeDefaultDescription
...propsdiv propsTruncated sidebar heading.
PropTypeDefaultDescription
...propsdiv propsOwns the sidebar's scrollable body region.
PropTypeDefaultDescription
...propsdiv propsFull-height scroll-content wrapper.
PropTypeDefaultDescription
...propsdiv propsOptional desktop live-agent overlay. It owns the full-width fade, theme spacing, and matching scroll-content clearance.
PropTypeDefaultDescription
...propsbutton propsTop-level destination such as Saved.
PropTypeDefaultDescription
...propsspan propsLeading icon slot for a menu destination.
PropTypeDefaultDescription
...propsspan propsMenu destination label.
PropTypeDefaultDescription
...propsspan propsTrailing metadata slot for a menu destination.
PropTypeDefaultDescription
...propsspan propsCompact trailing count for a menu destination.
PropTypeDefaultDescription
...propssection propsGroups a saved, pinned, channel, joint, or DM region.
PropTypeDefaultDescription
...propsdiv propsStructural header wrapper for a sidebar section.
PropTypeDefaultDescription
...propsbutton propsCollapsible section trigger.
PropTypeDefaultDescription
...propsspan propsSection heading label.
PropTypeDefaultDescription
...propsspan propsSection item count.
PropTypeDefaultDescription
...propsspan propsDisclosure indicator for a collapsible section.
PropTypeDefaultDescription
...propsdiv propsTrailing area of a section header.
PropTypeDefaultDescription
...propsspan propsUnread or attention indicator in a section header.
PropTypeDefaultDescription
...propsdiv propsControl group in a section header.
PropTypeDefaultDescription
...propsbutton propsSingle section-header control slot.
PropTypeDefaultDescription
...propsdiv propsCompact empty-state wrapper for a section.
PropTypeDefaultDescription
...propsdiv propsList wrapper for sidebar rows.
PropTypeDefaultDescription
...propsdiv propsStatic, non-interactive heading for sidebar groups that do not collapse.
PropTypeDefaultDescription
...propsbutton propsTheme-aware control button shared by the sidebar header and section control slots.