Skip to content
Inputs

Toggle

A toggle switch for boolean settings. Integrates with Signal Forms.

LlmToggle
WCAG AA0 deps

Demo

Live PreviewReact
html
<llm-toggle [(checked)]="notifications">Enable notifications</llm-toggle>
<llm-toggle [(checked)]="active">Active toggle</llm-toggle>
<llm-toggle [disabled]="true">Disabled</llm-toggle>

API (Angular)

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

Import

ts
import { LlmToggle } from '@atelier-ui/angular';