Checkbox
Checkboxes allow the user to select one or more items from a set.
1
import { Checkbox } from '../components'
2
3
<Checkbox
4
status={'checked'}
5
onPress={(state) => !state}
6
color={colors.primary}
7
/>
Copied!
CheckBoxes can be checked or disabled.
1
import { Checkbox } from '../components'
2
3
<Checkbox
4
status={'unchecked'}
5
onPress={(state) => !state}
6
color={colors.primary}
7
disabled
8
/>
Copied!

Properties

Name
Type
Description
status
string
Can be checked, unchecked
onPress
(status: string) => void
Called when checkbox should switch it's value.
color
string
Changes a color of the checkbox.
disabled
bool
Makes the checkbox disabled.
Last modified 1yr ago
Copy link
Contents
Properties