Zazz Design Framework
Components

Button

Actions and links with data-variant and data-size attributes.

Buttons use the .ui-button class on <button> or <a> elements. Choose styles with data-variant and dimensions with data-size. Omitting data-variant applies the default style.

Variants

Loading components…

With icons

Add an inline <svg> inside the button. Icons are sized automatically:

Loading components…

Icon-only

Use data-size="icon" or data-size="icon-sm" for square buttons:

Loading components…

With keyboard shortcuts

Add a <kbd> element inside the button for shortcut keys. Wrap a run of keys in a <ui-kbd-group> so their spacing stays consistent:

<button class="ui-button">
  Search
  <ui-kbd-group><kbd>⌘</kbd><kbd>K</kbd></ui-kbd-group>
</button>

API

AttributeValues
data-variantprimary, muted, ghost, destructive, link (omit = default)
data-sizesm, icon, icon-sm

Customize buttons globally by overriding --ui-button-background, --ui-button-radius, --ui-button-height, etc. on :root.

On this page