@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?
optionaldescription?:string
kind?
optionalkind?:string
label
label:
string
media?
optionalmedia?:ReactNode
value
value:
T
ChoiceCardsProps
ChoiceCardsProps<
T> =object
Type Parameters
T
T extends string
Properties
className?
optionalclassName?:string
legend
legend:
string
Screen readers only.
onValueChange
onValueChange: (
value) =>void
Parameters
value
T[]
Returns
void
options
options: readonly
ChoiceCard<T>[]
pickedLabel?
optionalpickedLabel?:string
unpickedLabel?
optionalunpickedLabel?:string
value
value: readonly
T[]
Functions
ChoiceCards()
ChoiceCards<
T>(props):Element
Type Parameters
T
T extends string
Parameters
props
Returns
Element