Skip to content

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

Interface: SegmentedProps<T> ​

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

Props of Segmented.

Type Parameters ​

T ​

T extends string | number

Properties ​

choices ​

choices: readonly Choice<T>[]

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


className? ​

optional className?: string

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


id? ​

optional id?: string

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

The group's id.


label ​

label: ReactNode

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

The group's name, said and shown.


onChange ​

onChange: (value) => void

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

Parameters ​

value ​

T

Returns ​

void


value ​

value: T

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