card

Card with icon, title and link

Card with icon, title and link

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

src/card/c-card-17.vue

<!--
  Расхождение с апстримом: `IconPlaceholder` заменена инлайновым `<svg>`
  (lucide-react v0.545.0 "shopping-bag"/"chevron-right") — см. docs/PORTING.md §5.
-->
<script setup lang="ts">
import { Card, CardContent } from "@/components/ui/card"

const item = {
  title: "Recent Orders Overview",
  description:
    "Track and review all recent purchases, updates, and status changes in one place.",
  link: "View Orders",
}
</script>

<template>
  <Card class="w-full max-w-xs">
    <CardContent class="flex flex-col gap-3">
      <div class="bg-primary rounded-md [&_svg]:text-primary-foreground flex size-11 items-center justify-center [&_svg]:size-5">
        <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-shopping-bag"
        ><path d="M16 10a4 4 0 0 1-8 0" /><path d="M3.103 6.034h17.794" /><path d="M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z" /></svg>
      </div>
      <a
        href="#"
        class="text-foreground hover:text-primary block text-sm leading-tight font-medium"
      >
        {{ item.title }}
      </a>
      <p class="text-muted-foreground text-xs leading-relaxed">
        {{ item.description }}
      </p>
      <a
        href="#"
        class="text-primary inline-flex items-center gap-1 text-xs font-medium hover:underline"
      >
        {{ item.link }}
        <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-chevron-right size-2.5 shrink-0"
        ><path d="m9 18 6-6-6-6" /></svg>
      </a>
    </CardContent>
  </Card>
</template>

Установка

npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-card-17.json

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

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