Questionnaire
Shared, editable XML components from the questionnaire 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:Questionnaire />
</ui:Theme>
Dependencies: checkbox, input, progress, theme.
Exports
ui:Questionnaire · ui:QuestionnaireActions · ui:QuestionnaireChoice · ui:QuestionnaireChoiceDescription · ui:QuestionnaireChoices · ui:QuestionnaireDescription · ui:QuestionnaireError · ui:QuestionnaireInput · ui:QuestionnaireItem · ui:QuestionnaireNext · ui:QuestionnairePrevious · ui:QuestionnaireProgress · ui:QuestionnaireQuestion · ui:QuestionnaireSkip · ui:QuestionnaireSubmit · ui:QuestionnaireTitle
ui:Questionnaire
| Prop | Default | Required |
|---|---|---|
title | '' | No |
description | '' | No |
value | null | 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
actions— useFill slot="actions".default— caller children.
Definition and forwarded payloads
<Component name="Questionnaire" props="title='', description='', value=null">
<Column class="gap-6">
<Text bind-text="props.title" class="font-rc-title font-semibold" />
<Text bind-text="props.description" class="font-rc-small text-rc-muted-foreground" />
<Slot />
<Row class="justify-end gap-2">
<Slot name="actions" />
</Row>
</Column>
</Component>
ui:QuestionnaireActions
| 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
default— caller children.
Definition and forwarded payloads
<Component name="QuestionnaireActions">
<Row class="gap-2 justify-end">
<Slot />
</Row>
</Component>
Read QuestionnaireActions source.
ui:QuestionnaireChoice
| Prop | Default | Required |
|---|---|---|
value | false | No |
label | '' | No |
enabled | 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
on-change— explicitly emitted output; inspect the definition for payload shape.
Slots
No content outlets.
Definition and forwarded payloads
<Component name="QuestionnaireChoice" props="value=false, label='', enabled=true" xmlns:ui="urn:relo:registry:relo">
<ui:Checkbox bind-value="props.value" bind-label="props.label" bind-enabled="props.enabled" on-change="emit change with event" />
</Component>
Read QuestionnaireChoice source.
ui:QuestionnaireChoiceDescription
| Prop | Default | Required |
|---|---|---|
text | '' | 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="QuestionnaireChoiceDescription" props="text=''">
<Text bind-text="props.text" class="font-rc-small text-rc-foreground" />
</Component>
Read QuestionnaireChoiceDescription source.
ui:QuestionnaireChoices
| 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
default— caller children.
Definition and forwarded payloads
<Component name="QuestionnaireChoices">
<Column class="gap-3">
<Slot />
</Column>
</Component>
Read QuestionnaireChoices source.
ui:QuestionnaireDescription
| Prop | Default | Required |
|---|---|---|
text | '' | 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="QuestionnaireDescription" props="text=''">
<Text bind-text="props.text" class="font-rc-small text-rc-foreground" />
</Component>
Read QuestionnaireDescription source.
ui:QuestionnaireError
| Prop | Default | Required |
|---|---|---|
text | '' | 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="QuestionnaireError" props="text=''">
<Text bind-text="props.text" class="font-rc-small text-rc-destructive" />
</Component>
Read QuestionnaireError source.
ui:QuestionnaireInput
| Prop | Default | Required |
|---|---|---|
value | '' | No |
label | '' | No |
placeholder | '' | No |
enabled | 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
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="QuestionnaireInput" 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>
Read QuestionnaireInput source.
ui:QuestionnaireItem
| 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
default— caller children.
Definition and forwarded payloads
<Component name="QuestionnaireItem">
<Column class="gap-3">
<Slot />
</Column>
</Component>
Read QuestionnaireItem source.
ui:QuestionnaireNext
| Prop | Default | Required |
|---|---|---|
label | '' | No |
variant | 'default' | No |
size | 'default' | No |
enabled | 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
on-press— explicitly emitted output; inspect the definition for payload shape.
Slots
default— caller children.
Definition and forwarded payloads
<Component name="QuestionnaireNext" 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 QuestionnaireNext source.
ui:QuestionnairePrevious
| Prop | Default | Required |
|---|---|---|
label | '' | No |
variant | 'default' | No |
size | 'default' | No |
enabled | 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
on-press— explicitly emitted output; inspect the definition for payload shape.
Slots
default— caller children.
Definition and forwarded payloads
<Component name="QuestionnairePrevious" 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 QuestionnairePrevious source.
ui:QuestionnaireProgress
| Prop | Default | Required |
|---|---|---|
value | 0 | 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="QuestionnaireProgress" props="value=0" xmlns:ui="urn:relo:registry:relo">
<ui:Progress bind-value="props.value" />
</Component>
Read QuestionnaireProgress source.
ui:QuestionnaireQuestion
| 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
default— caller children.
Definition and forwarded payloads
<Component name="QuestionnaireQuestion">
<Column class="gap-3">
<Slot />
</Column>
</Component>
Read QuestionnaireQuestion source.
ui:QuestionnaireSkip
| Prop | Default | Required |
|---|---|---|
label | '' | No |
variant | 'default' | No |
size | 'default' | No |
enabled | 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
on-press— explicitly emitted output; inspect the definition for payload shape.
Slots
default— caller children.
Definition and forwarded payloads
<Component name="QuestionnaireSkip" 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 QuestionnaireSkip source.
ui:QuestionnaireSubmit
| Prop | Default | Required |
|---|---|---|
label | '' | No |
variant | 'default' | No |
size | 'default' | No |
enabled | 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
on-press— explicitly emitted output; inspect the definition for payload shape.
Slots
default— caller children.
Definition and forwarded payloads
<Component name="QuestionnaireSubmit" 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 QuestionnaireSubmit source.
ui:QuestionnaireTitle
| Prop | Default | Required |
|---|---|---|
text | '' | 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="QuestionnaireTitle" props="text=''">
<Text bind-text="props.text" class="font-rc-small text-rc-foreground" />
</Component>
Read QuestionnaireTitle 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