mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
25 lines
451 B
Markdown
25 lines
451 B
Markdown
# Custom Content
|
|
Insert some custom content in it.
|
|
```html
|
|
<n-badge value="new">
|
|
<div class="block" />
|
|
</n-badge>
|
|
<n-badge value="hot">
|
|
<div class="block" />
|
|
</n-badge>
|
|
```
|
|
```css
|
|
.n-badge {
|
|
margin: 0 32px 8px 0;
|
|
}
|
|
.block {
|
|
width: 32px;
|
|
height: 32px;
|
|
background-color: #dddddd;
|
|
border-radius: 4px;
|
|
transition: background-color .3s cubic-bezier(.4, 0, .2, 1);
|
|
}
|
|
.n-dark-theme .block {
|
|
background-color: rgba(255, 255, 255, .15);
|
|
}
|
|
``` |