Button Group
Shared, editable XML components from the button-group 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:ButtonGroup />
</ui:Theme>
Dependencies: theme.
Exports
ui:ButtonGroup · ui:ButtonGroupSeparator · ui:ButtonGroupText
ui:ButtonGroup
| 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="ButtonGroup">
<Row class="items-center gap-0">
<Slot />
</Row>
</Component>
ui:ButtonGroupSeparator
| 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="ButtonGroupSeparator">
<Divider orientation="vertical" class="bg-rc-border h-6" />
</Component>
Read ButtonGroupSeparator source.
ui:ButtonGroupText
| 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="ButtonGroupText" props="text=''">
<Text bind-text="props.text" class="font-rc-small font-medium" />
</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