2.0.1 • Published 7 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
7 years ago
2.0.0
7 years ago
1.1.0
7 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
9 years ago
1.0.11
9 years ago
1.0.10
9 years ago
1.0.9
9 years ago
1.0.8
9 years ago
1.0.7
9 years ago
1.0.6
9 years ago
1.0.5
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago