Appearance
使用 Lucide Lab 或自定义图标
🌐 With Lucide Lab or custom icons
Lucide Lab 是一组不属于 Lucide 主库的图标。
它们可以通过使用 Icon 组件来使用。所有属性就像常规的 lucide 图标一样,都可以传递以调整图标的外观。
🌐 They can be used by using the Icon component. All props like regular lucide icons can be passed to adjust the icon appearance.
使用 Icon 组件
🌐 Using the Icon component
这将根据传递的 iconNode 创建一个图标,并渲染一个 Lucide 图标组件。
🌐 This creates a single icon based on the iconNode passed and renders a Lucide icon component.
vue
<script setup>
import { Icon } from '@lucide/vue';
import { baseball } from '@lucide/lab';
</script>
<template>
<Icon :iconNode="baseball" />
</template>