Xing Alert

Beautiful and customizable alert card components.

Rendered
Default.vue

Default Alert with no icon

Default Alert

Default Alert Card

The quick brown fox jumps over the lazy dog.

Rendered
Outline.vue

Outline Alert with no icon

Outline Alert

Outline Alert Card

The quick brown fox jumps over the lazy dog.

Rendered
CustomColor.vue

Custom Color Alert with no icon

Custom Color Alert

Custom Color Alert Card

The quick brown fox jumps over the lazy dog.

Rendered
CustomColorOutline.vue

Custom Color Outline Alert with no icon

Custom Color Outline Alert

Custom Color Outline Alert Card

The quick brown fox jumps over the lazy dog.

🦄 Features

  • Offers 4 variants, with each variant having 4 modes.
  • Utilizes XingIcon for icons.

🚀 Installation

npm
pnpm
bun
npx nidexingg-ui add alert

🧑‍🏫 Usage Guide

Props

variantstring
default
List of alert variants: default, outline, color, color-outline.
modestring
default
List of alert modes: default, link, card, linkcard.
colorstring
zinc
List of alert colors: slate, gray, zinc, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, and rose.
iconstring
lucide:info
Add an icon to the alert card. For the default and link variants, the icon is optional. However, for the card and linkcard variants, the icon is required. If you do not include the icon attribute and value, it will automatically default to lucide:info.

🧑‍💻 Maintainers and Credits