Checkbox for an on/off choice, alone next to its label or as the mark of each row of a list.
import { Checkbox } from "@plexui/react-native"
| iOS 26 | Android |
|---|
| Native component | None: a checkmark row or a Toggle | Checkbox |
| Look | A 22pt selection circle, filled with a check | An 18dp square box with 4dp corners, filled with a check |
| Prop | Type | Default | Description |
|---|
checked | boolean | "indeterminate" | — | Controlled state |
defaultChecked | boolean | "indeterminate" | false | Initial state (uncontrolled) |
onCheckedChange | (nextState: boolean) => void | — | Called with the next state when toggled; an indeterminate box checks |
label | ReactNode | — | The label beside the box |
description | ReactNode | — | Secondary text under the label, read after it |
orientation | "left" | "right" | "left" | Where the box stands against the label |
variant | "solid" | "ghost" | "solid" | ghost: the checkmark alone, as an iOS list row draws it. Android keeps the box |
invalid | boolean | false | Draws the box in the error color |
disabled | boolean | false | Dims the box and label and takes no presses |
pill | boolean | — | Kept for @plexui/ui's API: the box is a circle on iOS and a square on Android |
accessibilityLabel | string | — | Name of a checkbox without a text label |
testID | string | — | Test id |
style | StyleProp<ViewStyle> | — | Style of the checkbox's row |