Skip to content

Checkbox

Checkbox Primitive

Demo


A box that is a checked (ticked) indicator when activated.

Installation

Terminal window
npx @react-native-reusables/cli@latest add checkbox

Usage

import { Checkbox } from '~/components/ui/checkbox';
function Example() {
const [checked, setChecked] = React.useState(false);
return (
<Checkbox checked={checked} onCheckedChange={setChecked} />
);
}

Props

Checkbox

Extends Pressable props

PropTypeNote
checked*boolean
onCheckedChange*(checked: boolean) => void
disabledboolean(optional)