Skip to main content

Cards and collections

Render three small cards and keep one selected value. Stable keys identify the rows.

Before you start: controlled inputs and component composition.

Three Cards​

<ui:Theme xmlns:ui="urn:relo:registry:relo">
<Column state="{selected:'None'}" class="p-4 gap-3">
<For each="item" in="['Sketch','Build','Ship']" key="item">
<ui:Card><ui:Button bind-label="item" on-press="set selected to item" /></ui:Card>
</For>
<Text bind-text="'Selected: ' + selected" />
</Column>
</ui:Theme>
Three Cards
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.

Try it: change one value or variant, then reset and compare the result.

API​

card