ButtonΒΆ
-
/libs/granite/ui/components/foundation/button
Button is a component to represent a standard HTML button (<button>).
It has the following content structure:
-
granite:Button
- granite:commonAttrs
- granite:renderCondition
-
typestring
- button
- button
- submit
- reset
The type attribute.
- disabledboolean
true
to disable the button;false
otherwise.
-
autocompletestring
- off
- on
- off
The autocomplete attribute.
- formIdstring
The form attribute.
- textstring
- i18n
The body text of the element.
- activeboolean
true
to make this button in active state;false
otherwise.
- iconstring
The icon class.
-
iconSizestring
- S
- XS
- S
- M
- L
The size of the icon.
- hideTextboolean
Visually hide the text.
-
variantstring
- primary
- warning
- quiet
- square
- large
- block
- multiple
The variant of the button.
-
typestring
-
granite:Button