GitHub

Reference machines

radioGroup

interface 3 type 3 function 1
interface Interfaces 3

# CreateRadioGroupInput

Type Parameters

V

Members

defaultValue?
optional defaultValue?: V | null
disabled?
optional disabled?: boolean
items
items: readonly RadioItem<V>[]
navigation?
optional navigation?: "wrap" | "clamp"

Whether arrow navigation wraps (default) or clamps.

# RadioItem

Type Parameters

V

Members

disabled?
readonly optional disabled?: boolean

###### Overrides

CollectionItem.disabled

id
readonly id: string

###### Overrides

CollectionItem.id

label?
readonly optional label?: string

###### Overrides

CollectionItem.label

value
readonly value: V
type Type Aliases 3

# RadioGroupEvent

RadioGroupEvent<V> = { id: string; type: "SELECT"; } | { id: string; type: "FOCUS"; } | { type: "BLUR"; } | { direction: NavigateDirection; type: "NAVIGATE"; } | { type: "SET.VALUE"; value: V | null; } | { items: ReadonlyArray<RadioItem<V>>; type: "SET.ITEMS"; } | { type: "DISABLE"; } | { type: "ENABLE"; }

Type Parameters

V
function Functions 1

# createRadioGroupMachine ( )

createRadioGroupMachine<V>(input): RadioGroupMachine<V>

Construct a fresh RadioGroup machine.

Type Parameters

V

Parameters

Returns

RadioGroupMachine<V>