Inputs

Checkbox

A checkbox input that supports indeterminate state. Integrates with Signal Forms.

LlmCheckbox

Demo

<LlmCheckbox>I agree to the terms</LlmCheckbox>
<LlmCheckbox checked={true}>Pre-checked</LlmCheckbox>
<LlmCheckbox indeterminate={true}>Indeterminate</LlmCheckbox>
<LlmCheckbox disabled={true}>Disabled</LlmCheckbox>

API

PropTypeDefaultDescription
checkedbooleanfalseControlled checked state
onCheckedChange(checked: boolean) => voidCalled when the checked state changes
indeterminatebooleanfalseShows a dash (indeterminate state)
disabledbooleanfalseDisables the checkbox
readonlybooleanfalseMakes the checkbox read-only
invalidbooleanfalseApplies invalid/error styling
requiredbooleanfalseMarks field as required
namestring''HTML name attribute for form submission

Import

import { LlmCheckbox } from '@atelier-ui/react';