Checkbox
Accessible checkbox component with check indicator and label support.
v0.2.1NativeWindStyleSheetiOSAndroidExpo Go
Preview
Installation
npx nativra-cli add checkboxWrites Checkbox.tsx to components/ui, rewrites imports to your aliases and records hashes in nativra.lock.json, along with 1 registry dependency. Existing files are never overwritten without asking.
Want to try it first? Open it in the playground: a real React Native project in your browser, with this item installed by the CLI.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | required | Checked boolean state |
| onCheckedChange | (checked: boolean) => void | required | Callback triggered on toggle |
| label | string | undefined | Optional text label next to checkbox |
| disabled | boolean | false | Disables interaction |
Source
Exactly what the CLI writes, before your import aliases are applied.