Skip to content

five-on-it / apps/client/src/ui/kit/Field / ChoiceCardsProps

Interface: ChoiceCardsProps<T> ​

Defined in: apps/client/src/ui/kit/Field.tsx:405

Props of ChoiceCards.

Type Parameters ​

T ​

T extends string

Properties ​

choices ​

choices: readonly CardChoice<T>[]

Defined in: apps/client/src/ui/kit/Field.tsx:410


className? ​

optional className?: string

Defined in: apps/client/src/ui/kit/Field.tsx:415


help? ​

optional help?: ReactNode

Defined in: apps/client/src/ui/kit/Field.tsx:409

A line under the label.


id? ​

optional id?: string

Defined in: apps/client/src/ui/kit/Field.tsx:406


label ​

label: ReactNode

Defined in: apps/client/src/ui/kit/Field.tsx:407


min? ​

optional min?: number

Defined in: apps/client/src/ui/kit/Field.tsx:414

The narrowest a card is (px): as many to a row as fit.


onChange ​

onChange: (value) => void

Defined in: apps/client/src/ui/kit/Field.tsx:412

Parameters ​

value ​

T

Returns ​

void


value ​

value: T

Defined in: apps/client/src/ui/kit/Field.tsx:411