Skip to content

Icon 图标

基于字体的图标组件,支持自定义大小和颜色。

基础用法

不同尺寸

不同颜色

API

Props

参数说明类型默认值
size图标大小(像素)number-
color图标颜色string-

Slots

插槽名说明
default图标内容

使用示例

vue
<template>
  <AxIcon :size="24" color="#3b82f6"> 🏠 </AxIcon>
</template>

<script setup>
import AxIcon from '@packages/components/icon/src/icon.vue'
</script>

基于 MIT 协议开源