React Icon
摘要说明
本文主要展示 @chenwei02/react-icon 库在react的应用。
@chenwei02/react-icon
1. 图标集合
2. Install
npm install @chenwei02/react-icon 或 yarn add @chenwei02/react-icon
3. Quick Start
ts
import { Message, Eye, Logo } from '@chenwei02/react-icon'
const IconDemo = () => {
return (
<div>
<Eye size={30} color={'red'} />
</div>
)
}4. Svg Attributes
| name | type | default |
|---|---|---|
| size | number | undefined |
| width | number | undefined |
| height | number | undefined |
| className | string | undefined |
| color | string | undefined |
| fill | string | undefined |
| stroke | string | undefined |