Skip to content

图标 Icon

用于在界面中展示,提升用户体验和界面的视觉效果。可以用于按钮、导航栏、列表项等多个场景,帮助用户快速识别功能和内容。

图标组件库采用 Birdpaper Icon,这是一个基于 RemixIcon 二次封装的 Vue3 组件库。

基础用法

图标的基础用法

vue
<template>
  <bp-space>
    <IconBrush3Line />
    <IconBardLine />
    <IconCompass3Line />
    <IconVuejsLine />
    <IconCelsiusFill />
  </bp-space>
</template>

<script setup lang="ts">
import { IconBrush3Line, IconBardLine, IconCompass3Line, IconVuejsLine, IconCelsiusFill } from "birdpaper-icon";
</script>

Icon 属性

size图标尺寸
String
18px-
fill填充颜色
String
#595959-
spin是否持续旋转
Boolean
false-
rotate旋转角度
Number
--

附加

iconType图标类型数组
String[]
--
iconInfo图标枚举
Array<{name:string, list:string[]}>
--
iconNumbers图标数量
Number
--