2.0.1 • Published 5 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-tag
Usage
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 hasposition
css 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
5 years ago
2.0.0
5 years ago
1.1.0
5 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago