Skip to main content Red Hat Design System logo Contribute on Github

Button

Overview Style Guidelines Code Accessibility

Overview

A button is clickable text or an icon that triggers an action on the page or in the background. Depending on the action, content, and hierarchy, a button can be used on its own or grouped with other buttons.

Image of Danger, Primary, Secondary, Tertiary, and Link buttons in the first row and Play and Close buttons in the second row

Status

What do these mean?
Figma library:
Ready
RH Elements:
Ready
WebRH:
Ready

Sample element

Primary

Demos

View a live version of this component and see how it can be customized.

<rh-button>Primary</rh-button>

<script type="module">
import '@rhds/elements/rh-button/rh-button.js';
</script>

Full screen demo

When to use

  • When you need to allow users to interact with pages in a variety of ways
  • When you need to communicate actions users can take
  • When you need to draw attention to the highest priority action

Property Status Meaning
Figma library Ready Component is available in the Figma library
RH Elements Ready Component is available in the RH Elements repo
WebRH Ready Component is available in the WebRH repo
© 2021-2024 Red Hat, Inc. Deploys by Netlify