alert

Urgent billing notice

Urgent billing notice

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

src/alert/c-alert-16.vue

<script setup lang="ts">
import { Alert, AlertAction, AlertDescription, AlertTitle } from "@/components/reui/alert"
import { Frame, FramePanel } from "@/components/reui/frame"
import { Button } from "@/components/ui/button"
</script>

<template>
  <div class="mx-auto mb-auto w-full max-w-lg">
    <Frame>
      <FramePanel class="overflow-hidden p-0!">
        <Alert variant="destructive" class="bg-destructive/5 border-0 shadow-none">
          <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-credit-card"
          >
            <rect width="20" height="14" x="2" y="5" rx="2" />
            <line x1="2" x2="22" y1="10" y2="10" />
          </svg>
          <AlertTitle>Subscription Expiring</AlertTitle>
          <AlertAction>
            <Button size="xs" variant="destructive">Renew Now</Button>
          </AlertAction>
          <AlertDescription>
            Your annual subscription will expire in 3 days. Renew now to avoid
            service interruption and data loss.
          </AlertDescription>
        </Alert>
      </FramePanel>
    </Frame>
  </div>
</template>

Установка

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

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

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