Any other virtual element properties, including attributes and event handlers.
OptionalclassThe class name(s) for this virtual element, as a space-separated list.
OptionalclassThe class name(s) for this virtual element, as a space-separated list.
OptionaldefaultThe default value(s) for uncontrolled mode. Use this when you want the component to manage its own state.
OptionaldisabledWhether all buttons in the group are disabled.
Array of button configurations to display in the group. Each item can have its own icon, label, tooltip, and disabled state.
OptionalkeyA key to optionally associate with this element.
OptionalmultipleWhether to allow multiple buttons to be selected simultaneously.
OptionalonchangeCallback invoked when the selection changes.
The new value (single value or array depending on multiple)
OptionalvalueThe current value(s) of the toggle group (controlled mode).
OptionalonbeforeremoveThe onbeforeremove hook is called before a DOM element is detached from the document. If a Promise is returned, Mithril only detaches the DOM element after the promise completes.
OptionalonbeforeupdateThe onbeforeupdate hook is called before a vnode is diffed in a update.
OptionaloncreateThe oncreate hook is called after a DOM element is created and attached to the document.
OptionaloninitThe oninit hook is called before a vnode is touched by the virtual DOM engine.
OptionalonremoveThe onremove hook is called before a DOM element is removed from the document.
OptionalonupdateThe onupdate hook is called after a DOM element is updated, while attached to the document.
Attributes for the ToggleGroup component.
A toggle group is a container for multiple toggle buttons that manages their selection state. It can operate in single-select or multi-select mode.