Button

Summary

Buttons should be used to trigger actions. This can range from submitting a form to linking to another page. It is possible to place icons on buttons as well. A button should either be an anchor element, a button element or an input element.

Name Description Default Value
role

The role attribute must be set to the value button. It is used to identify the element as a command button the the browser. This is especially needed for anchor elements that are turned into buttons.

No values have been documented for this attribute.

data-zui-button-loader-timeout

The timeout in milliseconds before the loader icon is shown. Default is 1000.

No values have been documented for this attribute.

Example

Markup

<button>Button</button>

<a href="" class="zui-button" role="button">Button</a>
Fork me on GitHub