EnterUI
DocsComponentsThemesExamplesDonation
Get Started
      • Checkbox
      • RadioGroup
      • Switch

Default usage

  1. EnterUI
  2. /Docs
  3. /Inputs
  4. /Form Controls
  5. /Choice Controls
  6. /Checkbox
Updated 3 October 2026

Checkbox

A compact checkbox with checked, indeterminate, and disabled states.

Checkbox defines how EnterUI handles a compact checkbox with checked, indeterminate, and disabled states, including default structure, accessible states, and token-driven styling.

#Default usage

Checkbox states

Checked, indeterminate, and disabled states are intentionally compact.

Code
<VStack align="stretch" gap={12} fullWidth>
  <HStack gap={8}><Checkbox id="checkbox-option-1" defaultChecked /><Label htmlFor="checkbox-option-1">Publish docs</Label></HStack>
  <HStack gap={8}><Checkbox id="checkbox-option-2" indeterminate /><Label htmlFor="checkbox-option-2">Review mixed state</Label></HStack>
  <HStack gap={8}><Checkbox id="checkbox-option-3" disabled /><Label htmlFor="checkbox-option-3">Locked option</Label></HStack>
</VStack>

#Import

Code
import { Checkbox, HStack, Label, VStack } from "@froggdesign/enter-ui-react";

#Accessibility

Checkbox renders a visually hidden native input type="checkbox". The indeterminate prop sets the DOM indeterminate state and aria-checked="mixed".

#API

  • indeterminate enables mixed state.
  • Supports native checkbox props such as checked, defaultChecked, disabled, and name.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousTextArea
NextRadioGroup
On this page
  • Default usage
  • Import
  • Accessibility
  • API
  • Styling