Skip to main content

ui:Slider

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

Dependencies: theme.

Exports​

ui:Slider

ui:Slider​

PropDefaultRequired
value0No
label'Value'No
min0No
max100No
step1No
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-change — explicitly emitted output; inspect the definition for payload shape.

Slots​

No content outlets.

Definition and forwarded payloads
<Component name="Slider" props="value=0, label='Value', min=0, max=100, step=1, enabled=true">
<Range bind-value="props.value" bind-label="props.label" bind-min="props.min" bind-max="props.max" bind-step="props.step" bind-enabled="props.enabled" class="text-rc-primary transition-value spring-fast" on-change="emit change with event" />
</Component>

Read Slider 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