badge
v0.0.7arrow_drop_downv0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
12
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
徽章
1 contributor
Like
Install badge as a package?
Copied
npm i @bit/webnovel.read-ui.badge
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
Badge
h?f/d; d9o<
Demo
```JSX
import React from 'react';
import Badge from '@bit/webnovel.read-ui.badge';
import "@bit/webnovel.read-ui.style";
export default function () {
return (
<div>
<Badge url="https://actimg.webnovel.com/badge/10006/1/144.png"/>
</div>
)
}
Properties
Name | Type | Default value | Description |
---|---|---|---|
className | string | "" | css class |
children | node | 子元素 | |
url | string | null | 图标Url |
size | string | null | 尺寸 |
isDark | bool | false | 是否是灰色的 |