StatusIndicator

Figma
Github
Storybook

A small colored circle used to indicate status or state.

Importing

The component can be imported via:

import { StatusIndicator } from '@customerio/pluma-components/react';

Usage

The StatusIndicator component is a small colored circle used to indicate status or state.

It supports the following colors: red, yellow, green, blue, purple and grey.

<Stack direction="horizontal" gap="200">
  <StatusIndicator color="red" />
  <StatusIndicator color="yellow" />
  <StatusIndicator color="green" />
  <StatusIndicator color="blue" />
  <StatusIndicator color="purple" />
  <StatusIndicator color="grey" />
</Stack>

Pulsing Indicator

You can add a pulsing animation to the status indicator by setting the isPulsing prop to true. This is useful for indicating an active or processing state.

<Stack direction="horizontal" gap="200">
  <StatusIndicator color="red" isPulsing />
  <StatusIndicator color="yellow" isPulsing />
  <StatusIndicator color="green" isPulsing />
  <StatusIndicator color="blue" isPulsing />
  <StatusIndicator color="purple" isPulsing />
  <StatusIndicator color="grey" isPulsing />
</Stack>

On this page