alert
Invert alert
Invert alert
Загрузка превью…
src/alert/c-alert-9.vue
<script setup lang="ts">
import { Alert, AlertDescription, AlertTitle } from "@/components/reui/alert"
</script>
<template>
<Alert variant="invert">
<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-alert text-success"
>
<circle cx="12" cy="12" r="10" />
<line x1="12" x2="12" y1="8" y2="12" />
<line x1="12" x2="12.01" y1="16" y2="16" />
</svg>
<AlertTitle>Notification! All good</AlertTitle>
<AlertDescription>
This is a notification alert with a title and description.
</AlertDescription>
</Alert>
</template>
Установка
npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-alert-9.jsonЗависимости реестра
Источник: порт из ReUI (Keenthemes, MIT)