icon-tile

Sizes

Icon tile size scale

Загрузка превью…

src/icon-tile/c-icon-tile-5.vue

<!--
  Расхождение с апстримом: `IconPlaceholder` заменена инлайновым `<svg>`
  (lucide-react v0.545.0 "package") — см. docs/PORTING.md §5.
-->
<script setup lang="ts">
import { IconTile } from "@/components/reui/icon-tile"

const sizes = ["xs", "sm", "default", "lg", "xl"] as const
</script>

<template>
  <div class="flex items-end justify-center gap-4">
    <IconTile v-for="size in sizes" :key="size" variant="elevated" :size="size" aria-hidden="true">
      <svg
        xmlns="http://www.w3.org/2000/svg"
        width="24"
        height="24"
        viewBox="0 0 24 24"
        fill="none"
        stroke="currentColor"
        stroke-width="2"
        stroke-linecap="round"
        stroke-linejoin="round"
        aria-hidden="true"
        class="lucide lucide-package"
      ><path d="M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z" /><path d="M12 22V12" /><polyline points="3.29 7 12 12 20.71 7" /><path d="m7.5 4.27 9 5.15" /></svg>
    </IconTile>
  </div>
</template>

Установка

npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-icon-tile-5.json

Зависимости реестра

Источник: порт из ReUI (Keenthemes, MIT)