Checkbox

Checkbox with label and optional description. Supports indeterminate state.

Preview

Usage

import { Checkbox } from '@ramtt/ui'

<Checkbox checked={agreed} onChange={setAgreed} label="I agree to the terms" />

Props

PropTypeDefaultDescription
checked*booleanChecked state
onChange*(checked: boolean) => voidChange handler
labelstringLabel text
descriptionstringDescription below label
indeterminatebooleanfalseIndeterminate state
disabledbooleanfalseDisable the checkbox