icon-tile

Solid tones

Tone-adjustable solid variant

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

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

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

// The `solid` variant is a filled tone with a contrasting glyph. Override the
// fill with a `bg-*` class plus a readable text color. An empty class keeps the
// primary default.
const tones = [
  "",
  "bg-info text-white",
  "bg-success text-white",
  "bg-warning text-white",
  "bg-destructive text-white",
]
</script>

<template>
  <div class="flex items-center justify-center gap-4">
    <IconTile
      v-for="tone in tones"
      :key="tone || 'primary'"
      variant="solid"
      :class="tone"
      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-circle-check"
      ><circle cx="12" cy="12" r="10" /><path d="m9 12 2 2 4-4" /></svg>
    </IconTile>
  </div>
</template>

Установка

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

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

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