mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
1.5 KiB
1.5 KiB
title, author, createTime, permalink
| title | author | createTime | permalink |
|---|---|---|---|
| 组件 | pengzhanbo | 2024/03/06 09:42:42 | /guide/features/component/ |
<Badge />
Props
type- 类型:
'info' | 'tip' | 'warning' | 'danger' - 默认值:
'tip'
- 类型:
text- 类型:
string - 默认值:
''
- 类型:
输入:
- VuePress - <Badge type="info" text="v2" />
- VuePress - <Badge type="tip" text="v2" />
- VuePress - <Badge type="warning" text="v2" />
- VuePress - <Badge type="danger" text="v2" />
输出:
- VuePress -
- VuePress -
- VuePress -
- VuePress -
<Iconify />
支持 iconify 所有图标,支持通过 icon name 加载图标,可在 iconify search 搜索图标使用。
Props
name- 类型:
string - 默认值:
''
- 类型:
color- 类型:
string - 默认值:
'currentColor'
- 类型:
size- 类型:
string - 默认值:
'1em'
- 类型:
输入:
- home - <Iconify name="material-symbols:home" color="currentColor" size="1em" />
- vscode - <Iconify name="skill-icons:vscode-dark" size="2em" />
- twitter - <Iconify name="skill-icons:twitter" size="2em" />
输出:
- home -
- vscode -
- twitter -