Checkbox

Toggle control for on and off states

import { Checkbox } from "@plexui/ui/components/Checkbox";

Examples

Overview

variant

Variants

solid
solid pill
ghost

Pill

Ghost

With description

Indeterminate

Disabled

solid
solid pill
ghost

Label orientation

orientation

Without label

Group with select all

Group with description

Select the items you want to display on the desktop.

With Field

Please review and accept the terms before continuing.

Grouped sections

Configure which emails you receive.
Configure which push notifications you receive.

Reference

PropTypeDefaultDescription
variant"solid" | "ghost""solid"Visual style — solid (filled background) or ghost (checkmark only)
pillbooleanfalseFully rounded indicator corners
checkedboolean | "indeterminate"Controlled state
defaultCheckedboolean | "indeterminate"Initial state (uncontrolled)
onCheckedChange(next: boolean) => voidCalled when state changes
labelReactNodeAccessible label — accepts ReactNode for rich content
disabledbooleanfalsePrevent interaction
requiredbooleanRequired for form submission
namestringForm field name
valuestringValue when submitted
orientation"left" | "right""left"Label position relative to checkbox
classNamestringCSS classes applied to wrapper node
idstringThe id of the checkbox element