Skip to main content

Tabs

Shared, editable XML components from the tabs 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:Tabs />
</ui:Theme>

Dependencies: theme.

Exports​

ui:Tabs · ui:TabsContent · ui:TabsList · ui:TabsTrigger

ui:Tabs​

PropDefaultRequired
valuenullNo
mode'single'No
orientation'horizontal'No
label''No
activation'automatic'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​

  • on-change — explicitly emitted output; inspect the definition for payload shape.

Slots​

  • default — caller children.
Definition and forwarded payloads
<Component name="Tabs" props="value=null, mode='single', orientation='horizontal', label='', activation='automatic'">
<SelectionGroup bind-value="props.value" bind-mode="props.mode" bind-orientation="props.orientation" bind-activation="props.activation" bind-label="props.label" class="gap-2" on-change="emit change with event">
<Slot />
</SelectionGroup>
</Component>

Read Tabs source.

ui:TabsContent​

PropDefaultRequired
activefalseNo

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​

  • default — caller children.
Definition and forwarded payloads
<Component name="TabsContent" props="active=false">
<Column show="props.active" class="gap-4 enter:opacity-0 exit:opacity-0 spring-fast">
<Slot />
</Column>
</Component>

Read TabsContent source.

ui:TabsList​

PropDefaultRequired
—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​

  • default — caller children.
Definition and forwarded payloads
<Component name="TabsList">
<Row class="bg-rc-muted rounded-rc-lg p-1 gap-1">
<Slot />
</Row>
</Component>

Read TabsList source.

ui:TabsTrigger​

PropDefaultRequired
value—Yes
selectedfalseNo
label''No
enabledtrueNo

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​

  • on-press — explicitly emitted output; inspect the definition for payload shape.

Slots​

  • default — caller children.
Definition and forwarded payloads
<Component name="TabsTrigger" props="value, selected=false, label='', enabled=true">
<Pressable bind-itemValue="props.value" bind-selected="props.selected" bind-label="props.label" bind-enabled="props.enabled" role="tab" class="transition spring-fast rc-item px-3 py-2" on-press="emit press with event">
<Row class="h-full flex-1 items-center gap-2 justify-center">
<Slot>
<Text bind-text="props.label" />
</Slot>
</Row>
</Pressable>
</Component>

Read TabsTrigger source.

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