A card based single select input.
Props
Name
Description
Type
Default
groupBy
Group the cards by a key.
stringor
undefined
icon
Icon to display when checked.
[namespace: stringor
symbol, name: string]or
string
[ICON_NAMESPACE, check]
invalid
If the field is currently in an error state.
boolean
false
labelledby
The id of the component that labels this input. This input doesn't bring its own label, so must be labeled externally and referenced here.
string
messages
The validation messages of the field
ValidationMessagesor
undefined
name
The name of the field.
string
options
The options to be displayed and chosen from.
RadioCardGroupOption[]
renderCard
Overwrite the default card renderer
(h: typeof h, option: any, active: boolean) => stringor
VNodeor
VNode[]or
null
RadioCardGroup.defaultRenderCard
value
The current value of the field.
nullor
string
ValidationMessages
Name
Description
Type
RadioCardGroupOption
An option to be selected
Name
Description
Type
A longer description to be displayed.
If the option is disabled.
A name to display.
The string to be used as a value.
Events
Event
Detail
Description
fieldchange
FieldChange<string | null>
Emitted when the value of the field is changed.
Parts
Name
Description
group-title
The title of a card group.