Toggle button

Button wey manage two states by itself, using aria-pressed for on or off.

Input fields, choices, validation, dates and native form behaviour.

lr-toggle

import '@aceshooting/lyra-ui/components/lr-toggle.js';

Read di guide (for English)

Components wey relate

  • Toggle group — E gather toggle buttons under one tab stop for many choices or one choice wey fit clear.
  • Browser time input — Browser time picker wrapped with Lyra label, hint and validation; alternative to lr-time-input.
  • One-time code input — Segmented field for one-time verification code, with SMS autofill built in.
  • Radio button — One-choice control wey look like button instead of circle, often inside lr-radio-group.
  • Token input — Form field wey gather removable tokens like tags or recipients.
  • Date and time field — Put date and time, and choose time zone if you need am.