Toggle Group

Pressed-button group with single or multiple selection, optional form submission and auto-submit

View documentation

Toggle group

Options shortcut

Since 0.77: pass [value => label] pairs through :options instead of composing each item.

Flat options

A flat array uses each string as both the submitted value and the label.

Options plus composition

Generated options render before the slot. Compose an item when it needs rich content, disabled, attributes or Stimulus bindings.