Button

Buttons trigger actions and help users move through tasks.

Considerations

Our button component uses a base .button class with modifier classes like .button--primary and .button--secondary to provide a clear visual hierarchy and consistent styling.

We use semantic <button> elements for actions and <a> elements styled as buttons for navigation. This preserves correct browser and assistive-technology behavior—buttons submit forms or trigger in-page interactions, while links take users to new locations.

Remember, when deciding which one to use: Links go places. Buttons do things.

Disabled states rely on the native disabled attribute for true <button> elements, ensuring proper accessibility and preventing interaction.

If using a disabled state:

Examples

Various Button Types

<button type="button" class="button button--primary">A primary button</button>
<button type="button" class="button button--secondary">
A secondary button
</button>
<button type="button" class="button button--primary" disabled>
A disabled primary button
</button>
<a href="#" class="button button--primary"> A primary button link </a>
<a href="#" class="button button--secondary"> A secondary button link </a>