Manta Developers
GitHub
Menu

@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?

optional description?: string

icon?

optional icon?: ComponentType<{ aria-hidden?: boolean; className?: string; }>

label

label: string

value

value: T


ChoiceTilesProps

ChoiceTilesProps<T> = object

Type Parameters

T

T extends string

Properties

className?

optional className?: string

columns?

optional columns?: 2 | 3

Wide screens only; phones show two.

legend

legend: string

Screen readers only.

name

name: string

onPick?

optional onPick?: (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

ChoiceTilesProps<T>

Returns

Element