Skip to content

Checkbox

A labelled checkbox; bind checked.

Group: Inputs · Kind: native · in the lite catalog

example
checked · true
disabled · true

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-checkbox on Web
exponential-ui-checkbox on iOS
exponential-ui-checkbox on Android
exponential-ui-checkbox on Desktop
Prop Type Required Bindable Description
label string yes yes The text beside the box.
name string yes – The field’s key in the submitted data.
checked boolean – yes The state; bind it. Default false.
disabled boolean – – Shows it inert. Default false.
checks [check] – – Validation rules.
  • on.change: runs an action

None.

none

The basic catalog’s CheckBox renders as Checkbox.

A native component: every renderer paints it directly.

Role: checkbox

checkbox

Keys Action
Space toggle

Recipe parts: Checkbox/root Checkbox/box Checkbox/check Checkbox/label Checkbox/description

Keyed by: checked disabled :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Form · FieldGroup · FormActions · Input · Textarea · NumberField · Radio · ChoiceTiles