Toggle
Self-managed two-state button that flips an option on or off with aria-pressed semantics.
Inputs, selection, validation, dates, and native form behaviour.
lr-toggle
import '@aceshooting/lyra-ui/components/lr-toggle.js';Related components
- Toggle group — Groups toggle buttons behind one tab stop with multiple or clearable single selection.
- Native time input — Native browser time-picker field wrapped in Lyra label, hint, and validation chrome, for when the platform's own picker is preferred over the segmented lr-time-input.
- OTP input — Segmented field for entering a one-time verification code, with built-in SMS autofill.
- Radio button — Single-choice control styled as a button rather than a circle, usually grouped into a segmented control with lr-radio-group.
- Token input — Form-associated field that collects a list of removable tokens like tags or recipients.
- Date and time input — Enter a local date and time in a named time zone.