Call to action
On this page
Overview
Provides a styled link or button for prominent user actions when you need to
draw attention to a key interaction. Must contain an href attribute or a
slotted <a> / <button>. Screen readers announce the slotted text. Used
primarily for linking to other pages. Users should prefer to use the href
attribute or slotted links with this component. Avoid <button> with the
default (no variant) style.
Edit element properties
import '@rhds/elements/rh-cta/rh-cta.js';
<rh-cta href="#">Call to Action</rh-cta>
import { Cta } from "@rhds/elements/react/rh-cta/rh-cta.js";
// NOTE: React 19+ does not require these wrapper imports.
// You can use the custom elements directly as-is.
export const Demo = () => (
<Cta href="#">Call to Action</Cta>
);
Visual importance: primary (red fill), secondary (bordered),
brick (full-width grid), or undefined (default inline link with arrow).
URL for the CTA link. Renders an internal <a> instead of using a slotted element.
Triggers a file download when href is set. Passes through to the link.
Referrer policy when href is set. Passes through to the link.
Link relationship when href is set. Passes through to the link.
Browsing context when href is set (e.g. _blank). Passes through to the link.
Icon name. Overrides the default trailing arrow, or displays before text in brick variant.
Icon set to load from. Defaults to ui.
Status
- Figma library:
-
Ready - RH Elements:
-
Ready - RH Shared Libs:
-
Ready
When to use
- Apply specific styling to interactive text
- Entice users to select a link
- Allow users to navigate to a different page or domain
Status checklist
| Property | Status | Meaning |
|---|---|---|
| Figma library |
|
Component is available in the Figma library |
| RH Elements |
|
Component is available in RH Elements |
| RH Shared Libs |
|
Component is available in RH Shared Libs |
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.