Unique identifier for the button. This is used to reference the button in the toolbar.
OptionaliconSVG use href (e.g. '#icon-undo'), URL string, or an Element
OptionallabelOptional label for the button. This is used for accessibility and tooltips.
OptionaltooltipOptional tooltip text for the button. This is displayed on hover.
OptionaltoggleIndicates if the button is a toggle button.
OptionaldisabledIndicates if the button is disabled.
Click event handler for the button.
Definition of a toolbar button. Provide only the properties you want to customize. All other properties will use default values.