Checkbox

Component

Multiple choice selection with optional descriptions.

Installation & Usage

Basic Usage
import { Checkbox } from 'dotti'

<Checkbox
  label="Agree to terms"
  checked={agreed}
  onChange={setAgreed}
/>

Examples

Basic Checkbox

Standard checkbox with label and description.

Get updates about new components and features
Code
const [checked, setChecked] = useState(false)

<Checkbox
  label="Subscribe to newsletter"
  description="Get updates about new features"
  checked={checked}
  onChange={setChecked}
/>

Props