Jump links
On this page
On this page
Importing
Add rh-jump-links to your page with this import statement:
<script type="module">
import '@rhds/elements/rh-jump-links/rh-jump-links.js';
</script>
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
To learn more about installing RHDS elements on your site using an import map read our getting started docs.
Usage
rh-jump-links
Jump links allow users to navigate sections of content on a page.
Slot Name | Summary | Description |
---|---|---|
|
Place |
Attribute | DOM Property | Description | Type | Default |
---|---|---|---|---|
orientation |
orientation |
Whether the layout of children is vertical or horizontal. |
|
|
accessible-label |
accessibleLabel |
Accessible label for nav |
|
|
Method Name | Description |
---|---|
firstUpdated() |
|
orientationChanged() |
Event Name | Description |
---|---|
toggle |
when the |
Token | Copy |
---|---|
--rh-length-4xs
|
|
--rh-space-3xl
|
|
--rh-border-width-sm
|
|
--rh-color-border-subtle
|
|
--rh-space-lg
|
|
--rh-color-gray-40
|
|
--rh-color-gray-50
|
|
--rh-color-text-primary
|
|
rh-jump-link
Slot Name | Summary | Description |
---|---|---|
|
Attribute | DOM Property | Description | Type | Default |
---|---|---|---|---|
active |
active |
Whether this item is active. |
|
|
href |
href |
hypertext reference for this link |
|
|
CSS Property | Description | Default |
---|---|---|
--rh-jump-link-max-width |
max-width for each vertical jump link |
calc(var(--rh-length-md, 8px) * 40)
|
Token | Copy |
---|---|
--rh-color-interactive-secondary-default
|
|
--rh-space-md
|
|
--rh-length-md
|
|
--rh-space-lg
|
|
--rh-color-interactive-primary-default
|
|
--rh-border-radius-default
|
|
--rh-color-text-primary
|
|
--rh-color-brand-red
|
|
--rh-border-width-lg
|
|
--rh-color-border-status-neutral
|
|
rh-jump-links-list
Slot Name | Summary | Description |
---|---|---|
parent |
||
|
Attribute | DOM Property | Description | Type | Default |
---|---|---|---|---|
active |
active |
Whether this item is active. |
|
|
Token | Copy |
---|---|
--rh-length-4xs
|
|
--rh-color-border-subtle
|
|
--rh-space-lg
|
|
--rh-length-xs
|
|
--rh-color-brand-red
|
|
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.