Skip to main content

Checkbox

Boolean selection control for forms. Supports intermediate state and custom styling.

Import​

import { Checkbox } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Checkbox label="I agree to the terms" />
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

All Checkbox components accept standard React Native View props.

Variants​

See component props for available variants.

Examples​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={12}>
  <Checkbox label="Default checkbox" />
  <Checkbox label="Pre-checked" checked={true} />
  <Checkbox label="With helper text" helperText="Additional information" />
  <Checkbox label="Error state" error errorMessage="Required" />
  <Checkbox label="Disabled" disabled />
  <Checkbox label="Small size" size="sm" />
</Stack>
</ThemeProvider>

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible
  • ARIA attributes included
  • Focus management

Design Tokens​

This component uses the following design tokens:

  • Colors: colors.{semantic}.{theme}.{variant}
  • Spacing: spacing.*
  • Typography: typography.*

See Design Tokens for more information.

No related components.

Changelog​

See GitHub Releases for version history.