Forms

Checkbox.

Independent choices, with optional context.

LIVE PREVIEWTry it. It works.

Usage

React / TypeScript
<Checkbox label="Email updates" description="Only when something changes." />

Import components from @bld8/ui and include @bld8/ui/styles.css once. Wrap the application in UIProvider.

API & behaviour

label is required. Supports native checked/defaultChecked, onChange, disabled, required and name. description is linked to the input.

Notes to self

Test this component with real content, keyboard input and both themes. The example is a starting point; labels, error handling and behaviour still need to fit the application.