N/A

LucideIcon

Use Lucide icons in Nuxt projects with shadcn-vue-friendly naming and component support.

Installation

pnpm dlx shadcn-vue@latest add "https://ui.stackhacker.io/r/lucide-icon.json"

Usage

<script setup lang="ts">
import { LucideIcon } from '@/components/ui/lucide-icon'
</script>

<template>
  <LucideIcon name="i-lucide-sun" class="size-6" />
</template>

Examples

Default

Size

With Vue component

API Reference

Props

PropTypeDefaultDescription
namestring | ComponentRequiredIcon identifier. Accepts i-lucide-* format strings or Vue components.
sizestring | numberIcon dimensions. Numbers are treated as pixels.
classstringCSS classes to apply to the icon.