CSC Design System next
VueFlavour Vue React Angular TypeScript PrimaryCSC UI ColorsPrimarySecondaryAccentCustom ColorsRedOrangeGreenBluePurplePink
Guides Getting started Customization Data visualization Migration guide Componentsc-accordionc-alertc-autocompletec-badgec-buttonc-button-groupc-cardc-checkboxc-csc-logoc-data-tablec-dividerc-iconc-icon-buttonc-inputc-linkc-listc-loaderc-login-buttonsc-login-cardc-mainc-menuc-messagec-modalc-navigation-buttonc-otp-inputc-pagec-paginationc-popoverc-progress-barc-progress-circlec-radio-groupc-selectc-side-navigationc-sliderc-spinnerc-statusc-stepsc-switchc-tablec-tabsc-tagsc-text-fieldc-toastsc-toolbarc-tooltip

<c-status>

Examples

Basic
Vue React Angular TypeScript
<template>
  <div class="example-row">
    <c-status>Default</c-status>

    <c-status type="info">Pending</c-status>

    <c-status type="success">Active</c-status>

    <c-status type="warning">Expiring</c-status>

    <c-status type="error">Failed</c-status>
  </div>
</template>

API reference

<c-status>

Properties

PropertyAttributeTypeDefaultDescription
typetypeCStatusTypeStatus type

Slots

SlotDescription
defaultStatus text

CSS parts

Style from outside with c-status::part(name) — parts are the library's only styling customization API.

PartDescription
rootThe status pill wrapping the slotted text

Types

Importable from the package root: import type { … } from '@cscfi/csc-ui'

CStatusProps
export interface CStatusProps {
  /**
   * Status type
   *
   * @seeded from csc-ui — verify
   */
  type?: CStatusType;
}
CStatusType

Status type of the pill. Each value paints the matching semantic status colours; omitting the attribute renders the neutral primary pill.

export type CStatusType = 'error' | 'info' | 'success' | 'warning';