Skip to content

UI: Checkbox

View as Markdown

A checkbox with its label. Import the token file once (@pithyx/ui/tokens.css) and wrap the app in UiProvider; see @pithyx/ui.

Generated from the TSDoc comments of @pithyx/ui 1.0.0-rc.9 at build time; the text below the headings is the comment in the source.

The props of Checkbox: React Aria’s checkbox field props plus the label.

  • Omit<CheckboxFieldProps, "className" | "children">
children: ReactNode;

The label, also the accessible name.

function Checkbox(props): Element;

A checkbox with its label.

Parameter Type Description
props CheckboxProps React Aria’s checkbox field props (isSelected, onChange, isDisabled) plus the label.

Element

The checkbox with its label.