Skip to main content

ui:Input

Shared, editable XML components from the input 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">
<Column state="{name:''}" class="p-4 gap-3">
<ui:Input label="Name" model="name" />
<Text bind-text="name" />
</Column>
</ui:Theme>
A controlled input
editable
Browser preview
rReady to explore
Environment & events

Browser rendering of the shared document. Host services are bundled demo mocks. XML edits reset local state; data edits preserve compatible state.

Interact with the preview to inspect emitted events and mocked service calls.

Dependencies: theme.

Exports​

ui:Input

ui:Input​

PropDefaultRequired
value''No
label''No
placeholder''No
enabledtrueNo
validationMessagenullNo
autocorrecttrueNo
securefalseNo
keyboard'default'No
contentType'none'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.
  • on-submit — explicitly emitted output; inspect the definition for payload shape.

Slots​

No content outlets.

Definition and forwarded payloads
<Component name="Input" props="value='', label='', placeholder='', enabled=true, validationMessage=null, autocorrect=true, secure=false, keyboard='default', contentType='none'">
<TextField bind-value="props.value" bind-label="props.label" bind-placeholder="props.placeholder" bind-autocorrect="props.autocorrect" presentation="editor" bind-enabled="props.enabled" bind-validationMessage="props.validationMessage" class="transition spring-fast rc-input px-3 h-8" on-change="emit change with event" bind-secure="props.secure" bind-keyboard="props.keyboard" bind-contentType="props.contentType" on-submit="emit submit with event" />
</Component>

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