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.
View a live version of this component and see how it can be customized.
<link rel="stylesheet" href="demo.css">
<script type="module" src="rh-button.js"></script>
<rh-button variant="secondary" danger>Secondary Danger</rh-button>
<rh-button>demo in a new tab
- 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
Related elements or patterns
To give feedback about anything on this page, contact us.
Red Hat legal and privacy links
- About Red Hat
- Contact Red Hat
- Red Hat Blog
- Diversity, equity, and inclusion
- Cool Stuff Store
- Red Hat Summit