fndn/ui

Components

Checkbox

Beta

Turns one option on or off, independently of the others.

Details

Turn one option on or off, independently of the others. A 16px box on a hairline ring that fills with ink when checked; the box fills first and the check is then drawn from the inline start (the dash of the indeterminate state from its centre); unchecking is a shorter plain fade. The whole row, label included, is the hit area. Behaviour, focus and ARIA come from the Zag checkbox machine, through Ark UI in React, Vue and Svelte. A visually hidden native checkbox carries focus, Space and the form value.

Behaviour from Ark UI, the checkbox machine of Zag.