Icon (图标)

来自内置注册表的内联 SVG 图标 —— 绝不联网请求;继承文字颜色。

仅限内置

使用 lucide:check 这类内置名称。自定义图标用 @kungal/ui-core 的 registerKunIcon(s) 注册;未知名称会回退到注入的 iconComponent(Nuxt 层下为 @nuxt/icon)。

基础用法

Basic.vue

尺寸

Sizes.vue

颜色

Colors.vue

多个图标

lucide:check
lucide:x
lucide:info
lucide:search
lucide:copy
lucide:download
lucide:upload
lucide:calendar
lucide:eye
lucide:eye-off
lucide:arrow-right
lucide:chevron-right
lucide:plus
lucide:minus
lucide:external-link
lucide:refresh-ccw
lucide:home
lucide:settings
lucide:github
lucide:bot
lucide:zap
lucide:palette
lucide:moon
svg-spinners:90-ring-with-bg
Gallery.vue

属性

属性类型默认值说明
classNamestring""
namestring""