2.0.1 • Published 6 years ago
sale-tag v2.0.1
sale-tag
sale-tag is a react component for sale tag. it use pure css, re implement various sale of tag. At present, has one tag style, named discount tag
Installation
Install sale-tag in your node project with npm or yarn:
$ npm install sale-tag
//or
$ yarn add sale-tagUsage
use es6 import module, and then use, like this:
import Tag from 'sale-tag'
<Tag text={'9 折'} disable={Boolean} />Note:
Before use it, make sure html parent element haspositioncss attribute, and it's value is relative.
Parameters
| Name | Type | IsRequired | Description |
|---|---|---|---|
| disable | Boolean | no | default value is true. When it is false, sale-tag color is blue, otherwise gray. |
2.0.1
6 years ago
2.0.0
6 years ago
1.1.0
6 years ago
1.0.17
8 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago