Switch

An on/off setting that applies right away.

Helper
toggle_switch(
  name,
  label:,
  checked: false,
  value: "1",
  **html
)

It is a real checkbox with role=switch, so it submits with forms. When the change is only saved with the form, prefer a plain checkbox.