components / Status and Feedback

Status Light

The default status light is used to visually indicate a status of an object.

Status light can also be used without the label.


Statuses

Default

The default status state.

Info

The Neutral status state.

Success

The success state.

Warning

Warning, likely requests user action.

Critical

Critical or error, likely needs user action.


Variations

Action

When the element has onClick, onMouseOver, or href it will be in actionable state.

Disabled

Disabled states, non-interactive.

Full

Extends to full width of the parent container.

Split

Splits the dot and the label to end to end of its allowed width.

Reverse

Reverse states.

Pulsing

Dot pulses for higher attention from user. eg) New item, Critical state, error that is blocking a job etc..


Label(children)

Label can be customized. For example, adding multiple text object to create double line, etc..

Can add anything to the children as label


Best Practices

  • Status light should be used to help users read object's status fast.
  • Status light vs Tag: Status light is to show state and tags are used to categorize.

Importing

import { StatusLight } from '@servicetitan/design-system';