Skip to content

role button

Button draft v0.22.1

Triggers an action or event when activated.

A button lets people perform an action with a single activation: submit a form, open a dialog, confirm a choice. Its emphasis communicates how important the action is on the screen; its intent communicates what kind of action it is. Buttons never navigate; use a link for navigation.

Playground

HTML
<button
  type="button"
  class="ds-button"
  data-emphasis="accent"
  data-intent="neutral"
  data-size="medium"
>
  <span class="ds-button__label" data-part="label">Save changes</span>
</button>