1. Reference
  2. Forms and input

<radio>

One choice in a radio group: a label and a dot, with only one radio in the group selected at a time.

Forms and input
radio.ham
<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>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Attributes

NameWhat it doesDefault
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.

This page is also Markdown, and all of HAM is in llms.txt.