Manta Developers
GitHub
Menu

@manta-eu/react/choice-cards

Reference for @manta-eu/react/choice-cards as it is on main.

Type Aliases

ChoiceCard

ChoiceCard<T> = object

Type Parameters

T

T extends string

Properties

description?

optional description?: string

kind?

optional kind?: string

label

label: string

media?

optional media?: ReactNode

value

value: T


ChoiceCardsProps

ChoiceCardsProps<T> = object

Type Parameters

T

T extends string

Properties

className?

optional className?: string

legend

legend: string

Screen readers only.

onValueChange

onValueChange: (value) => void

Parameters
value

T[]

Returns

void

options

options: readonly ChoiceCard<T>[]

pickedLabel?

optional pickedLabel?: string

unpickedLabel?

optional unpickedLabel?: string

value

value: readonly T[]

Functions

ChoiceCards()

ChoiceCards<T>(props): Element

Type Parameters

T

T extends string

Parameters

props

ChoiceCardsProps<T>

Returns

Element