Skip to content

ButtonChooserOptions

Defined in: components/buttonChooser.ts:6

Options for buttonChooser.

optional attrs?: string

Defined in: components/buttonChooser.ts:8

Aberdeen attr/style string applied to the button group.


options: Record<string, Slot>

Defined in: components/buttonChooser.ts:14

The options to display, as a plain object mapping id → display label. Buttons appear in insertion order. A label may be a plain (rich-text) string, or a draw-function for custom content such as an icon.


bind: Bindable<string>

Defined in: components/buttonChooser.ts:19

Two-way binding for the selected id, or undefined when nothing is selected. Use an A.proxy or A.ref.


optional allowDeselect?: boolean

Defined in: components/buttonChooser.ts:24

When true, clicking the already-selected button deselects it, setting bind.value to undefined. Useful for “none / auto” states.


optional name?: string

Defined in: components/buttonChooser.ts:26

Name attribute for the hidden <input>, enabling form submission.