Renders a group of radio buttons, for example for a toolbar.
To render radio buttons within a regular form, use input/1
with the
"radio-group"
type instead.
<.radio_group
id="favorite-dog"
name="favorite-dog"
label="Favorite Dog"
options={[
{"Labrador Retriever", "labrador"},
{"German Shepherd", "german_shepherd"},
{"Golden Retriever", "golden_retriever"},
{"French Bulldog", "french_bulldog"},
{"Beagle", "beagle"}
]}
/>
To target the wrapper, you can use an attribute selector:
[role="radio-group"] {}