logo

Steeze UI

Radio Group

Form Input

Select one value from a list of options

Quickstart #

<script>
	import { RadioGroup, RadioButton } from "@steeze-ui/components"
	let stance = "goofy"
</script>

<RadioGroup label="Stance" name="stance" bind:value={stance} orientation="vertical">
	<RadioButton label="Goofy" value="goofy" />
	<RadioButton label="Regular" value="regular" />
</RadioGroup>

API Reference - RadioGroup #

PropertyTypeDefault
name
String null
value String null
label String null
orientation GroupOrientation 'horizontal'

Styling - RadioGroup #

NameDefaultNotes
--st-radio-group-gap 0.25rem The gap between label and items
--st-radio-group-items-horizontal-gap 0.75rem The gap between RadioButton's when horizontal
--st-radio-group-items-vertical-gap 0.5rem The gap between RadioButton's when vertical

API Reference - RadioButton #

PropertyTypeDefault
label String null
value String null
disabled Boolean false
required Boolean false

Styling - RadioButton #

NameDefault
--st-radio-button-label-font-size --st-font-size-base
--st-radio-button-label-font-weight --st-font-weight-normal
--st-radio-button-label-color --st-body-text-color
--st-radio-button-indicator-size --st-box-size
--st-radio-button-indicator-bg-color --st-box-bg-color
--st-radio-button-indicator-border-color --st-box-border-color
--st-radio-button-indicator-border-radius --border-radius-full
--st-radio-button-indicator-selected-bg-color --st-colors-light1
--st-radio-button-indicator-selected-bg-color --st-box-selected-bg-color
MIT Licensed