IKHSAN
EN Read in EnglishID

opendesk

Publik
Branch
main
Commit terakhir
08d9f3328 Oktober 2026

Icon.vue

Buka raw
<template>
  <div v-if="isEmoji(icon)" v-bind="$attrs">
    {{ icon }}
  </div>
  <SpriteIcon
    v-else-if="typeof icon == 'string'"
    :name="icon.replace('lucide-', '')"
    v-bind="$attrs"
  />
  <component v-else :is="icon" v-bind="$attrs" />
</template>
<script setup>
import { isEmoji } from "./utils";
// Sprite, not a `lucide-*` class: these names come from stored view icons, and
// Tailwind only emits CSS for class names it can see in source.
import { Icon as SpriteIcon } from "frappe-ui/experimental";

const props = defineProps({
  icon: {
    type: [String, Object],
    required: true,
  },
});
</script>
byte
623
baris
25
Jenis
vue
Commit terakhir
28 Oktober 2026