icon
v0.0.9arrow_drop_downv0.0.9
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Processing
DOWNLOADS
156
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
6 KB
图标
1 contributor
Like
Install icon as a package?
Copied
npm i @bit/webnovel.read-ui.icon
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
Icon
g.e
f f e>f o<e72g;g’;f$
e0 webnovel-icons
c g9ff%gf f e>f
d8 e(h?d8*e:ige>f o<f e/h=f/h?g’;d9e gf’e>f o<e6e.fd;6e$9d8ge>f i=d<i f8h?g’;c
Demo
import React from 'react';
import Icon from '@/read-ui/Icon';
import { ISmile } from "webnovel-icons";
export default (
<div>
<Icon Svg={ISmile} size={24} />
<h2>d=?g(e>f h*h:+i"h 2</h2>
<Icon isSelfColor Svg={ISmile} size={24} />
</div>
);
Properties
Name | Type | Default value | Description |
---|---|---|---|
Svg (required) | node | function | svg,直接 import icon from ‘icon.svg’ 即可 | |
size | string | number | 16 | 尺寸大小 默认16 |
isSelfColor | bool | false | 是否使用图标自身颜色 |
className | ? | "" |