Skip to main content

Buttons

Compare variants of one ui:Button. Its press event is explicit output, not automatic navigation.

Before you start: controlled inputs and component composition.

Button Variants​

<ui:Theme xmlns:ui="urn:relo:registry:relo">
<Row class="gap-2 flex-wrap">
<ui:Button label="Save" />
<ui:Button label="Cancel" variant="outline" />
<ui:Button label="More" variant="ghost" />
</Row>
</ui:Theme>
Button Variants
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​

button