Skip to Content
SmartUI

Checkbox

Choose zero, one or many options. Also for a single consent.

Usage

import { Checkbox } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Choosing several options.
  • A parent "select all" with the indeterminate state.

When not to use

  • Exactly one option. Use Radio.
  • A setting that applies immediately. Use Switch.

Props

PropTypeDefaultDescription
isSelected, defaultSelected, onChangeboolean, boolean, (v) => void-
isIndeterminatebooleanfalse
size'md' | 'lg''md'
isInvalid, isDisabledbooleanfalse

Accessibility

  • The whole row is one target. Space toggles it.

On this page