Sidebar Layout

Attribute Type Documentation Default Value
id :string "sidebar-layout"
class :any
content_class :any
toggle_label :string

accessible name of the topbar button that opens and closes the sidebar

"Toggle sidebar"
close_label :string

accessible name of the overlay that closes the sidebar on a narrow screen

"Close sidebar"
brand :slot

branding area at top of sidebar (logo, tenant name)

<:brand><span style="font-weight: 700; font-size: 1.125rem;">ExoUI</span></:brand>
Required nav * :slot

navigation menu items

<:nav><ul style="list-style: none; padding: 0; margin: 0;"><ExoUI.Layouts.sidebar_item href="#" icon="house" label="Dashboard" active /><ExoUI.Layouts.sidebar_item href="#" icon="users" label="Users" badge={3} /><ExoUI.Layouts.sidebar_item href="#" icon="chart-bar" label="Analytics" /><ExoUI.Layouts.sidebar_item href="#" icon="settings" label="Settings" /></ul></:nav>
topbar_start :slot

left side of topbar (breadcrumbs, search)

topbar_end :slot

right side of topbar (theme toggle, notifications, user menu)

<:topbar_end><ExoUI.Components.avatar name="Admin User" size="sm" /></:topbar_end>
footer :slot

user info at bottom of sidebar

<:footer><div style="font-size: 0.75rem; color: var(--exo-muted-foreground);">ExoUI v0.1.0</div></:footer>
Required inner_block * :slot

page content