mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-23 23:29:22 +01:00
20 lines
441 B
Vue
20 lines
441 B
Vue
|
|
<script setup lang="ts">
|
||
|
|
import createLucideIcon from 'lucide-vue-next/src/createLucideIcon';
|
||
|
|
|
||
|
|
export type IconNode = [elementName: string, attrs: Record<string, string>][]
|
||
|
|
|
||
|
|
const props = defineProps<{
|
||
|
|
name: string;
|
||
|
|
tags: string[];
|
||
|
|
categories: string[];
|
||
|
|
// contributors: Contributor[];
|
||
|
|
iconNode: IconNode;
|
||
|
|
}>()
|
||
|
|
|
||
|
|
const icon = createLucideIcon(props.name, props.iconNode)
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<component :is="icon" />
|
||
|
|
</template>
|