rsuite-tag
v1.0.0
Published
Tag for categorizing or markuping.
Downloads
8
Readme
rsuite-tag
安装
npm install rsuite-tag --save
使用
import React, { PropTypes, Component } from 'react';
import Tag from 'rsuite-tag';
import randomText from '../util/randomText';
export default class TagShowDemo extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
{Object.keys(Tag.Color).map(color => <Tag key={color} color={color}>{`标签${randomText()}`}</Tag>)}
</div>
);
}
}