Sidebar
Shared, editable XML components from the sidebar family.
Usage
Declare the catalog namespace in your screen and run relo-components build to bundle its dependencies before delivery. Install Components host support before session creation. Use ui:Theme or your compatible theme.
<ui:Theme xmlns:ui="urn:relo:registry:relo">
<ui:Sidebar />
</ui:Theme>
Dependencies: input, skeleton, theme.
Exports
ui:Sidebar · ui:SidebarContent · ui:SidebarFooter · ui:SidebarGroup · ui:SidebarGroupAction · ui:SidebarGroupContent · ui:SidebarGroupLabel · ui:SidebarHeader · ui:SidebarInput · ui:SidebarInset · ui:SidebarMenu · ui:SidebarMenuAction · ui:SidebarMenuBadge · ui:SidebarMenuButton · ui:SidebarMenuItem · ui:SidebarMenuSkeleton · ui:SidebarMenuSub · ui:SidebarMenuSubButton · ui:SidebarMenuSubItem · ui:SidebarProvider · ui:SidebarRail · ui:SidebarSeparator · ui:SidebarTrigger
ui:Sidebar
| Prop | Default | Required |
|---|---|---|
'expanded' | No | |
'Sidebar' | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Mapped value choices: expanded, hidden, icon.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="Sidebar" props="value='expanded', label='Sidebar'">
<Column bind-label="props.label" show="props.value != 'hidden'" bind-class="{expanded:'w-64 p-3',icon:'w-12 p-1',hidden:'w-0'}[props.value] + ' bg-rc-sidebar text-rc-sidebar-foreground gap-4'">
<Slot />
</Column>
</Component>
ui:SidebarContent
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarContent">
<Column class="gap-4">
<Slot />
</Column>
</Component>
ui:SidebarFooter
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarFooter">
<Column class="gap-2">
<Slot />
</Column>
</Component>
ui:SidebarGroup
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarGroup">
<Column class="gap-1">
<Slot />
</Column>
</Component>
ui:SidebarGroupAction
| Prop | Default | Required |
|---|---|---|
'' | No | |
'default' | No | |
'default' | No | |
true | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.
Mapped variant choices: default, destructive, ghost, link, outline, secondary.
Events
- — explicitly emitted output; inspect the definition for payload shape.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarGroupAction" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>
Read SidebarGroupAction source.
ui:SidebarGroupContent
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarGroupContent">
<Column class="gap-1">
<Slot />
</Column>
</Component>
Read SidebarGroupContent source.
ui:SidebarGroupLabel
| Prop | Default | Required |
|---|---|---|
'' | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
No content outlets.
Definition and forwarded payloads
<Component name="SidebarGroupLabel" props="text=''">
<Text bind-text="props.text" class="font-rc-small text-rc-muted-foreground" />
</Component>
Read SidebarGroupLabel source.
ui:SidebarHeader
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarHeader">
<Column class="gap-2">
<Slot />
</Column>
</Component>
ui:SidebarInput
| Prop | Default | Required |
|---|---|---|
'' | No | |
'' | No | |
'' | No | |
true | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
- — explicitly emitted output; inspect the definition for payload shape.
- — explicitly emitted output; inspect the definition for payload shape.
Slots
No content outlets.
Definition and forwarded payloads
<Component name="SidebarInput" props="value='', label='', placeholder='', enabled=true" xmlns:ui="urn:relo:registry:relo">
<ui:Input bind-value="props.value" bind-label="props.label" bind-placeholder="props.placeholder" bind-enabled="props.enabled" on-change="emit change with event" on-submit="emit submit with event" />
</Component>
ui:SidebarInset
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarInset">
<Column class="flex-1 gap-4">
<Slot />
</Column>
</Component>
ui:SidebarMenu
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarMenu">
<Column class="gap-1">
<Slot />
</Column>
</Component>
ui:SidebarMenuAction
| Prop | Default | Required |
|---|---|---|
'' | No | |
'default' | No | |
'default' | No | |
true | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.
Mapped variant choices: default, destructive, ghost, link, outline, secondary.
Events
- — explicitly emitted output; inspect the definition for payload shape.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarMenuAction" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>
Read SidebarMenuAction source.
ui:SidebarMenuBadge
| Prop | Default | Required |
|---|---|---|
'' | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
No content outlets.
Definition and forwarded payloads
<Component name="SidebarMenuBadge" props="text=''">
<Text bind-text="props.text" class="font-rc-small font-medium" />
</Component>
ui:SidebarMenuButton
| Prop | Default | Required |
|---|---|---|
'' | No | |
'default' | No | |
'default' | No | |
true | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.
Mapped variant choices: default, destructive, ghost, link, outline, secondary.
Events
- — explicitly emitted output; inspect the definition for payload shape.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarMenuButton" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>
Read SidebarMenuButton source.
ui:SidebarMenuItem
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarMenuItem">
<Column class="gap-1">
<Slot />
</Column>
</Component>
ui:SidebarMenuSkeleton
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
No content outlets.
Definition and forwarded payloads
<Component name="SidebarMenuSkeleton" xmlns:ui="urn:relo:registry:relo">
<ui:Skeleton />
</Component>
Read SidebarMenuSkeleton source.
ui:SidebarMenuSub
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarMenuSub">
<Column class="ps-4 gap-1">
<Slot />
</Column>
</Component>
ui:SidebarMenuSubButton
| Prop | Default | Required |
|---|---|---|
'' | No | |
'default' | No | |
'default' | No | |
true | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.
Mapped variant choices: default, destructive, ghost, link, outline, secondary.
Events
- — explicitly emitted output; inspect the definition for payload shape.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarMenuSubButton" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>
Read SidebarMenuSubButton source.
ui:SidebarMenuSubItem
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarMenuSubItem">
<Column class="gap-1">
<Slot />
</Column>
</Component>
Read SidebarMenuSubItem source.
ui:SidebarProvider
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarProvider">
<Row class="gap-0">
<Slot />
</Row>
</Component>
ui:SidebarRail
| Prop | Default | Required |
|---|---|---|
'' | No | |
'default' | No | |
'default' | No | |
true | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.
Mapped variant choices: default, destructive, ghost, link, outline, secondary.
Events
- — explicitly emitted output; inspect the definition for payload shape.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarRail" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>
ui:SidebarSeparator
| Prop | Default | Required |
|---|---|---|
| — | No declared user props | — |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Events
No directly emitted output events.
Slots
No content outlets.
Definition and forwarded payloads
<Component name="SidebarSeparator">
<Divider class="bg-rc-border" />
</Component>
ui:SidebarTrigger
| Prop | Default | Required |
|---|---|---|
'' | No | |
'default' | No | |
'default' | No | |
true | No |
Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.
Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.
Mapped variant choices: default, destructive, ghost, link, outline, secondary.
Events
- — explicitly emitted output; inspect the definition for payload shape.
Slots
- — caller children.
Definition and forwarded payloads
<Component name="SidebarTrigger" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>
Composition and accessibility
Use explicit value/change ownership; events do not bubble automatically. A component forwards only outputs declared by its own emits. Slots retain caller scope. Supply meaningful labels for interactive controls, preserve focus and touch targets, and test reduced motion on each platform.
Component customization · Definitions and slots · Components index