Beta Preview

StatusLight

Status lights are used to color code categories and labels commonly found in data visualization. When status lights have a semantic meaning, they should use semantic variant colors.

Ready
 
variant 
size 
import {StatusLight} from '@react-spectrum/s2';

<StatusLight variant="positive">Ready</StatusLight>

API

NameTypeDefault
childrenReactNodeDefault:
The content to display as the label.
variant'informative''neutral''positive''notice''negative''celery''chartreuse''cyan''fuchsia''purple''magenta''indigo''seafoam''yellow''pink''turquoise''cinnamon''brown''silver'Default:
The variant changes the color of the status light. When status lights have a semantic meaning, they should use the variant for semantic colors.
size'S''M''L''XL'Default: 'M'
The size of the StatusLight.
stylesDefault:
Spectrum-defined styles, returned by the style() macro.