npm i react-shields-badge --save
yarn add react-shields-badge --save
import Badge from "react-shields-badge";
import "react-shields-badge/dist/react-shields-badge.css";
<Badge data={["npm", "v1.0.0"]} />
Props | Type | Description | Default |
---|---|---|---|
data | array | Data record array to be displayed | - |
color | array | Color of the badge | |
backgroundColor | array | backgroundColor of the badge | Color Map |
name | color |
---|---|
black | |
blue | |
brightgreen | |
red | |
orange | |
green | |
yellowgreen | |
yellow | |
lightgrey |