Vivid API

Button

Buttons trigger an action, such as submitting a form, closing a dialog, or navigating to a new page.

Toggle Buttons

Use the pressed attribute to create toggle buttons. Always update the aria-label (or visible label) to reflect the current state so that both sighted and screen reader users understand what action will occur.

Custom Width

A button’s width can be easily customised by attaching styles to the button component directly.

When there is not enough space for the label text, the content will be truncated as in the example above.

Toolbars

Toolbars can be created using ghost buttons contained inside an action-group component.