Status dot

A small dot with a label for the state of something: live, waiting, down or off. The live one pulses.

Operational Deploying Down Paused

Options

Size

Code

import "./status-dot.css";

export function Status({ state = "live", children }) {
  return (
    <span className="dh-status" data-state={state}>
      {children}
    </span>
  );
}

export function Example() {
  return (
    <div className="dh-status-row">
      <Status state="live">Operational</Status>
      <Status state="wait">Deploying</Status>
      <Status state="down">Down</Status>
      <Status state="off">Paused</Status>
    </div>
  );
}
Operational Deploying Down Paused