Skip to content
Inputs

Toggle

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

LlmToggle
WCAG AA0 deps

Demo

Live PreviewReact
jsx
<LlmToggle>Enable notifications</LlmToggle>
<LlmToggle checked={true}>Active toggle</LlmToggle>
<LlmToggle disabled={true}>Disabled</LlmToggle>

API (Angular)

PropTypeDefaultDescription
checkedbooleanfalseControlled checked state
onCheckedChange(checked: boolean) => voidCalled when the checked state changes
[(value)]booleanfalseAlias for checked (Signal Forms integration)
(valueChange)(checked: boolean) => voidAlias for onCheckedChange (Signal Forms integration)
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';