<radio>
One choice in a radio group: a label and a dot, with only one radio in the group selected at a time.
<column style="w-full gap-8">
<text style="font-semibold">Delivery</text>
<radio-group name="delivery">
<radio value="standard"
color="teal-600"
label="Standard, 3 to 5 days"
selected="true"/>
<radio value="express"
color="teal-600"
label="Express, next day"/>
<radio value="pickup"
color="teal-600"
label="Pick up in store"/>
</radio-group>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
checked |
Alias for selected boolean |
false |
color |
Active color color |
|
label |
Radio label string |
|
selected |
Initially selected boolean |
false |
value |
Radio value string |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.