Skip to content

Alert

Info, success, warning, or danger message.

Usage

vue
<script setup>
import { ArchAlert } from "@archora/ui";
</script>

<template>
  <ArchAlert variant="warning" title="Token drift"
    >Theme tokens changed after the last release.</ArchAlert
  >
</template>

Live sandbox

Alert can be tested directly on this page.

interactive
Token drift
Theme tokens changed after the last release.
<Alert />

Props

PropTypeDefaultDescription
variant"info" | "success" | "warning" | "danger""info"Visual variant.
titlestring-Title.
role"alert" | "status"-ARIA role; defaults to alert for danger and status otherwise.

Slots

SlotPropsDescription
default-Main content.
title-Custom title.