BetaPublic beta — Read the release notes
Documentation

Radio Group

Single-select radio button set with keyboard navigation.

Package
@solidiom/radio-group
Version
0.0.1-next.0
Status
stable

Generated from the package's public source.

API

Indicatorcomponent

                        Indicator(props: RadioGroupIndicatorProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Itemcomponent

                        Item(props: RadioGroupItemProps): Element
                      

Props

class?
string
disabled?
boolean
style?
string | CSSProperties
value
string — The value this item represents.

children: Element

View source

RadioGroupIndicatorPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

RadioGroupItemPropsinterface

Props

class?
string
disabled?
boolean
style?
string | CSSProperties
value
string — The value this item represents.

children: Element

View source

RadioGroupRootPropsinterface

Props

class?
string
defaultValue?
string — Default value (uncontrolled).
disabled?
boolean
name?
string — Form field name for hidden inputs.
onValueChange?
(value: string) => void — Called when the selected value changes.
orientation?
"horizontal" | "vertical" — Layout orientation — affects arrow key navigation direction.
required?
boolean
style?
string | CSSProperties
value?
Accessor<string | undefined> — Controlled value.

children: Element

View source

Rootcomponent

                        Root(props: RadioGroupRootProps): Element
                      

Props

class?
string
defaultValue?
string — Default value (uncontrolled).
disabled?
boolean
name?
string — Form field name for hidden inputs.
onValueChange?
(value: string) => void — Called when the selected value changes.
orientation?
"horizontal" | "vertical" — Layout orientation — affects arrow key navigation direction.
required?
boolean
style?
string | CSSProperties
value?
Accessor<string | undefined> — Controlled value.

children: Element

View source