npm.io
0.0.2 • Published 8 years ago

react-bullet-status

Licence
MIT
Version
0.0.2
Deps
4
Size
6 kB
Vulns
0
Weekly
0

react-bullet-status

Component to show quantity and states with a color circle.

Example

Install

$ yarn install react-bullet-status

Example

import React from 'react'
import Base, { Color } from 'react-bullet-status'

const App = () =>
  <Base
    value={ 1 }
    color={ Color.open }
    label='Open'
  />

export default App
List of colors
  • open
  • waitingInventory
  • inProcess
  • completed
  • reverted
  • reverted
Value

Numeric value.

Color

Use list of colors or set hexadecimal color.

Label

Text label.