alert

Alert integrated within a Frame with reset borders

Alert integrated within a Frame with reset borders

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

src/alert/c-alert-12.vue

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

<template>
  <div class="mx-auto mb-auto w-full max-w-lg">
    <Frame>
      <FramePanel class="overflow-hidden p-0!">
        <Alert class="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-info text-destructive"
          >
            <circle cx="12" cy="12" r="10" />
            <path d="M12 16v-4" />
            <path d="M12 8h.01" />
          </svg>
          <AlertTitle>System Update</AlertTitle>
          <AlertDescription>
            A new system update is available. Please restart your application
            to apply the changes.
          </AlertDescription>
        </Alert>
      </FramePanel>
    </Frame>
  </div>
</template>

Установка

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

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

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