@manta-eu/react/choice-tiles
Reference for @manta-eu/react/choice-tiles as it is on main.
Type Aliases
ChoiceTile
ChoiceTile<
T> =object
Type Parameters
T
T extends string
Properties
description?
optionaldescription?:string
icon?
optionalicon?:ComponentType<{aria-hidden?:boolean;className?:string; }>
label
label:
string
value
value:
T
ChoiceTilesProps
ChoiceTilesProps<
T> =object
Type Parameters
T
T extends string
Properties
className?
optionalclassName?:string
columns?
optionalcolumns?:2|3
Wide screens only; phones show two.
legend
legend:
string
Screen readers only.
name
name:
string
onPick?
optionalonPick?: (value) =>void
Fires on click, Enter or Space, once the ring lands.
Parameters
value
T
Returns
void
onValueChange
onValueChange: (
value) =>void
Fires on arrow keys too.
Parameters
value
T
Returns
void
options
options: readonly
ChoiceTile<T>[]
value
value:
T|undefined
Functions
ChoiceTiles()
ChoiceTiles<
T>(props):Element
Type Parameters
T
T extends string
Parameters
props
Returns
Element