React Native Starter
2.0.0
Search
K

Checkbox

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

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 2yr ago