Universal Component

Alert

Status banner for inline feedback

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

Alert

Inline status banner for contextual feedback.

Basic Usage

Alert Variants

Info / Success / Warning / Error.

Demo will load when visible.
<template>
  <TxAlert title="Heads up" message="Check your configuration." type="info" />
  <TxAlert title="Success" message="Saved successfully." type="success" />
  <TxAlert title="Warning" message="Something needs your attention." type="warning" />
  <TxAlert title="Error" message="Save failed." type="error" />
</template>

Interaction Contract

Alert renders with role="alert", uses the shared TxIcon renderer for semantic leading icons, and emits close only from the close button. Set closable=false for persistent alerts, or showIcon=false for text-only banners.

API (Lite)

PropertyTypeDefaultDescription
typeinfosuccesswarningerrorVisual intent
titleAlert title
messageAlert message
closableShow close button
showIconShow leading icon