Skip to content

five-on-it / apps/client/src/ui/Checkbox / CheckboxProps

Interface: CheckboxProps ​

Defined in: apps/client/src/ui/Checkbox.tsx:9

Props of a checkbox.

Properties ​

checked ​

checked: boolean

Defined in: apps/client/src/ui/Checkbox.tsx:13

Ticked.


children ​

children: ReactNode

Defined in: apps/client/src/ui/Checkbox.tsx:17

The label's words.


id ​

id: string

Defined in: apps/client/src/ui/Checkbox.tsx:11

The input's id (the end-to-end tests find the box by it).


onChange ​

onChange: (checked) => void

Defined in: apps/client/src/ui/Checkbox.tsx:15

Gets the new state when the box is clicked.

Parameters ​

checked ​

boolean

Returns ​

void