Overview

A call to action is a styled link that entices users to make a selection.

Image of variants including Primary (red background and white text), Secondary (black border and black text), Brick (light gray border and blue text), and Default (blue text and blue icon)

Sample element

Primary

Demo

View a live version of this element to see how it can be customized.

<rh-cta>
<a href="#">Call to Action</a>
</rh-cta>


<link rel="stylesheet" href="../rh-cta-lightdom.css">
<script type="module">
import '@rhds/elements/rh-cta/rh-cta.js';
</script>

View the demo

When to use

  • When you need users to navigate to a different page or domain
  • When you need to arrange links in different arrangements like in a row or grid
  • When you need to hide or reveal content
© 2021-2024 Red Hat, Inc. Deploys by Netlify