Site status

Overview Style Guidelines Code Demos Accessibility
  1. Usage
  2. rh-site-status
  1. Usage
  2. rh-site-status

Installation

Learn more about how to install on our getting started docs.

Red Hat CDN
<script type="module">
  import '@rhds/elements/rh-site-status/rh-site-status.js';
</script>
Import Map Example
<script type="importmap">
  {
    "imports": {
      "@rhds/elements/": "https://www.redhatstatic.com/dx/v1-alpha/@rhds/elements@2.0.1/elements/",
    }
  }
</script>
NPM
npm install @rhds/elements
<script type="module">
  import '@rhds/elements/rh-site-status/rh-site-status.js';
</script>
JSPM
<script type="module">
  import '@rhds/elements/rh-site-status/rh-site-status.js';
</script>
Import Map Example
<script type="importmap">
{
  "imports": {
    "@rhds/elements/rh-site-status/rh-site-status.js": "./elements/rh-site-status/rh-site-status.js"
  },
  "scopes": {
    "./": {
      "@patternfly/pfe-core/": "https://ga.jspm.io/npm:@patternfly/pfe-core@4.0.2/",
      "@patternfly/pfe-core/ssr-shims.js": "https://ga.jspm.io/npm:@patternfly/pfe-core@4.0.2/core.js",
      "@rhds/elements/": "./elements/",
      "@rhds/icons": "https://ga.jspm.io/npm:@rhds/icons@1.1.2/icons.js",
      "@rhds/icons/ui/": "https://ga.jspm.io/npm:@rhds/icons@1.1.2/ui/",
      "@rhds/tokens/css/color-context-consumer.css.js": "https://ga.jspm.io/npm:@rhds/tokens@2.1.0-next.15/css/color-context-consumer.css.js",
      "lit": "https://ga.jspm.io/npm:lit@3.2.0/index.js",
      "lit/": "https://ga.jspm.io/npm:lit@3.2.0/",
      "tslib": "https://ga.jspm.io/npm:tslib@2.7.0/tslib.es6.mjs"
    },
    "https://ga.jspm.io/": {
      "@lit/reactive-element": "https://ga.jspm.io/npm:@lit/reactive-element@2.0.4/development/reactive-element.js",
      "@lit/reactive-element/decorators/": "https://ga.jspm.io/npm:@lit/reactive-element@2.0.4/development/decorators/",
      "@patternfly/pfe-core/controllers/property-observer-controller.js": "https://ga.jspm.io/npm:@patternfly/pfe-core@4.0.2/controllers/property-observer-controller.js",
      "lit": "https://ga.jspm.io/npm:lit@3.2.0/index.js",
      "lit-element/lit-element.js": "https://ga.jspm.io/npm:lit-element@4.1.0/development/lit-element.js",
      "lit-html": "https://ga.jspm.io/npm:lit-html@3.2.0/development/lit-html.js",
      "lit-html/": "https://ga.jspm.io/npm:lit-html@3.2.0/development/",
      "tslib": "https://ga.jspm.io/npm:tslib@2.7.0/tslib.es6.mjs"
    }
  }
}
</script>

Usage

<rh-site-status></rh-site-status>

rh-site-status

Slots 1
Slot Name Description

loading-text - Text to display while loading the status defaults to "Loading"

Attributes 0

None

Methods 0

None

Events 0

None

CSS Shadow Parts 0

None

CSS Custom Properties 0

None

Design Tokens 14
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