Call to action
Installation
Usage
<rh-cta href="#default">Default</rh-cta>
rh-cta
Slot Name | Description |
---|---|
undefined |
The default slot contains the link text when the |
DOM Property | Description | Type | Default |
---|---|---|---|
variant |
Indicates the importance of this call-to-action in the context of the page. Will also influence how the call-to-action is styled.
|
|
|
href |
When set, overrides the default slot. Use instead of a slotted anchor tag |
|
|
download |
when |
|
|
referrerpolicy |
when |
|
|
rel |
when |
|
|
target |
when |
|
|
icon |
Icon name |
|
|
iconSet |
Icon set |
|
|
None
None
Part Name | Description |
---|---|
container |
container element for slotted CTA |
CSS Property | Description | Default |
---|---|---|
--rh-cta-color |
Sets the cta color |
var(--rh-color-text-primary-on-dark, #ffffff)
|
--rh-cta-background-color |
Sets the cta background color |
var(--rh-color-brand-red-on-light, #ee0000)
|
--rh-cta-border-color |
Sets the cta border color |
var(--rh-color-brand-red-on-light, #ee0000)
|
--rh-cta-hover-color |
Sets the cta color on hover |
var(--rh-color-text-primary-on-dark, #ffffff)
|
--rh-cta-hover-background-color |
Sets the cta background color on hover |
var(--rh-color-brand-red-dark, #be0000)
|
--rh-cta-hover-border-color |
Sets the cta boder color on hover |
var(--rh-color-brand-red-dark, #be0000)
|
--rh-cta-focus-color |
Sets the cta color on focus |
var(--rh-color-text-primary-on-dark, #ffffff)
|
--rh-cta-focus-background-color |
Sets the cta background color on focus |
var(--rh-color-brand-red-on-light, #ee0000)
|
--rh-cta-focus-container-background-color |
Sets the cta container background color on focus |
transparent
|
--rh-cta-focus-container-outline-color |
Sets the cta container outline color on focus |
#0066cc
|
--rh-cta-focus-border-color |
Sets the cta border color on focus |
transparent
|
--rh-cta-focus-inner-border-color |
Sets the cta inner border color on focus |
transparent
|
--rh-cta-active-color |
Sets the cta color on active. Applicable only for secondary variant |
var(--rh-color-text-primary-on-dark, #ffffff)
|
--rh-cta-active-background-color |
Sets the cta background color on active |
var(--rh-color-brand-red-dark, #be0000)
|
--rh-cta-active-container-background-color |
Sets the cta container background color on active. Applicable only for default variant |
#0066cc1a
|
--rh-cta-active-inner-border-color |
Sets the cta inner border color on active |
var(--rh-color-text-primary-on-dark, #ffffff)
|
--rh-cta-text-decoration |
Sets the cta text decoration |
none
|
--rh-cta-focus-text-decoration |
Sets the cta text decoration on focus |
none
|
--rh-cta-hover-text-decoration |
Sets the cta text decoration on hover |
none
|
--rh-cta-active-text-decoration |
Sets the cta text decoration on active |
none
|
None
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.