@snack-uikit/status
TypeScript icon, indicating that this package has built-in type declarations

0.7.1 • Public • Published

Status

Installation

npm i @snack-uikit/status

Changelog

Example

import { Status, StatusIndicator } from '@snack-uikit/status';

<Status 
  label="Text after status"
  appearance='pink'
  size='xs'
  hasBackground={true}
/>

<StatusIndicator
  appearance='violet'
  size='l'
/>

Status

Props

name type default value description
label* string - Текст
size enum Size: "xs", "s" xs Размер
appearance enum Appearance: "primary", "neutral", "red", "orange", "yellow", "green", "blue", "violet", "pink" primary Внешний вид
hasBackground boolean - Наличие фона
className string - CSS-класс

StatusIndicator

Props

name type default value description
size enum Size: "xs", "s", "xxs", "m", "l" m Размер
appearance enum Appearance: "primary", "neutral", "red", "orange", "yellow", "green", "blue", "violet", "pink" primary Внешний вид
className string - CSS-класс

Readme

Keywords

none

Package Sidebar

Install

npm i @snack-uikit/status

Weekly Downloads

109

Version

0.7.1

License

Apache-2.0

Unpacked Size

50.8 kB

Total Files

70

Last publish

Collaborators

  • yetihead
  • cloud-ru-tech
  • agrigorii