@workday/canvas-kit-react-status-indicator
TypeScript icon, indicating that this package has built-in type declarations

4.8.1 • Public • Published

Canvas Kit Status Indicator

A component showing a status indicator of a given type, emphasis and label.

> Workday Design Reference

Installation

yarn add @workday/canvas-kit-react

or

yarn add @workday/canvas-kit-react-status-indicator

Usage

import * as React from 'react';
import {StatusIndicator} from '@workday/canvas-kit-react-status-indicator';

<StatusIndicator type={StatusIndicator.Type.Orange} label={'Status'} />;

Static Properties

Type: StatusType

<StatusIndicator type={StatusIndicator.Type.Red} label={'Status'} />

Emphasis: StatusEmphasis

<StatusIndicator
  type={StatusIndicator.Type.Red}
  emphasis={StatusIndicator.Emphasis.Low}
  label={'Status'}
/>

Component Props

Required

type: StatusType

Type of status indicator. The Canvas system has predefined types that are meant to indicate various kinds of statuses.

label: string

Text of the status message.

Optional

emphasis: StatusEmphasis

Emphasis of status indicator. Currently supports High(default) and Low emphasis.

icon: CanvasSystemIcon

Icon to be used with the label text.

Package Sidebar

Install

npm i @workday/canvas-kit-react-status-indicator

Weekly Downloads

2,694

Version

4.8.1

License

Apache-2.0

Unpacked Size

39.8 kB

Total Files

21

Last publish

Collaborators

  • jaclynjessup
  • nicholasboll
  • alanbsmith
  • workday-canvas-kit
  • justin.pante
  • anicholls