Site status
On this page
On this page
Installation
We recommend import maps when building pages with RHDS. Learn more about how to install on our getting started docs.
<script type="importmap">
{
"imports": {
"@rhds/elements/": "https://www.redhatstatic.com/dx/v1-alpha/@rhds/elements@2.1.2/elements/",
}
}
</script>
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
npm install @rhds/elements
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
<script type="importmap">
Could not generate import map using JSPM: Cannot read properties of undefined (reading '@rhds/elements')
</script>
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
Add it to your page with this import statement
<script type="module">
import '@rhds/elements/rh-site-status/rh-site-status.js';
</script>
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
Usage
<rh-site-status></rh-site-status>
<script type="module">
import '@rhds/elements/rh-site-status/rh-site-status.js';
</script>
Copy to Clipboard
Copied!
Wrap lines
Overflow lines
rh-site-status
Website status communicates the operational status of a website or domain using a status icon and link. It is usually located in the Footer component.
Slot Name | Description |
---|---|
|
loading-text - Text to display while loading the status defaults to "Loading" |
Token | Copy |
---|---|
--rh-border-radius-default
|
|
--rh-border-width-md
|
|
--rh-color-border-interactive
|
|
--rh-color-status-danger
|
|
--rh-color-status-success
|
|
--rh-color-status-warning
|
|
--rh-color-surface-dark
|
|
--rh-color-surface-light
|
|
--rh-color-text-primary
|
|
--rh-color-white
|
|
--rh-font-size-body-text-sm
|
|
--rh-size-icon-01
|
|
--rh-space-lg
|
|
--rh-space-md
|
|
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.