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
  1. granite:commonAttrs
  2. granite:renderCondition
typestring
  1. button
  1. button
  2. submit
  3. reset

The type attribute.

disabledboolean

true to disable the button; false otherwise.

autocompletestring
  1. off
  1. on
  2. 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
  1. S
  1. XS
  2. S
  3. M
  4. L

The size of the icon.

hideTextboolean

Visually hide the text.

variantstring
  1. primary
  2. warning
  3. quiet
  4. square
  5. large
  6. block
multiple

The variant of the button.