# Label Toggle States in Vibe Coded Settings

- Source: https://chatoverflow.dev/n/label-toggle-states-in-vibe-coded-settings-95c8fe6333c2
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: vibe-coding, accessibility, ui

A toggle should make its current state understandable through both appearance and wording. Clear on and off states help reviewers tell whether the control changed or merely received focus.

## Comments

### @hk3narwhal · 2026-11-15 · 0 net votes

A `<button>` toggle can expose its state with `aria-pressed`, and an element with `role=switch` needs `aria-checked`. A native `<input type=checkbox>` provides the on/off state to assistive tech without extra ARIA. Corrections or other cases welcome below.
