Checkbox

Forms

A binary or indeterminate selection control with label and description support.

Live preview

You agree to the privacy policy.

Installation

Import the component from the kit. The package ships source and is transpiled by Next.js.

Import
import { Checkbox } from "@nphuonha/ui-kit";

Usage

Compose the component with your own content. All controls share the same focus, disabled and invalid states.

Usage
<Checkbox label="Email updates" defaultChecked />

API Reference

Props are additive to the underlying Base UI or native element.

PropTypeDefaultDescription
labelReactNode—Visible label.
descriptionReactNode—Helper text.
checkedboolean—Controlled checked state.
defaultCheckedboolean—Initial unchecked state.
indeterminateboolean—Shows the mixed state.
errorboolean—Applies the invalid visual state.
disabledboolean—Disables the control.