OptionalattrsHTML attributes.
OptionalautorepeatEnable auto-repeat behavior when button is held down.
true uses default 200ms repeat intervalnumber specifies custom repeat interval in millisecondsFirst click triggers after 500ms, then repeats at specified interval.
OptionalclickCallback function invoked when button is clicked cf. ButtonEvents
OptionalclsAdditional CSS classes.
OptionalcontentChild content (components, strings, or HTML).
OptionaldisabledComponent is initialy disabled.
Optionaldom_DOM event listeners.
OptionalexistingExisting DOM element to wrap.
OptionalflexEnables flex layout (boolean) or sets flex-grow (number).
OptionalheightHeight (px or string like "50%").
OptionalhiddenComponent is initialy hidden.
OptionaliconIcon identifier to display
OptionalidElement ID.
OptionallabelText or HTML content of the button
OptionalmenuA menu that a click opens under the button, in place of the click event. A function is called at each click: it gives the items of that time. The button gets the class "with-menu".
OptionalnsNamespace for SVG/MathML elements.
OptionalstretchOptionalstyleInline CSS styles.
OptionaltabindexTab index for keyboard navigation.
false to exclude from tab ordernumber to set specific tab indexOptionaltagHTML tag name (default: "div").
OptionaltooltipTooltip text.
OptionalwidthWidth (px or string like "50%" or "3em").
Button properties.