Alert — Vue

Accessible alert component with variants, dismissible functionality, and auto-dismiss

Alert

Accessible alert component with variants, dismissible functionality, and auto-dismiss

Same BEM classes and behavior as Astro, Svelte, and React.

Add this component

The command below includes <strong>Alert</strong>—run it in your project directory to install this component (and the CSS if needed). No prompts.

Choose your package manager — click a tab to select, then copy the command.

npm pnpm yarn bun

Live examples

Vue
Your changes have been saved.
An error occurred. Please try again.

Usage

Usage

Full example for each framework (Astro, Vanilla, Svelte, Vue, React). Switch framework via View as or by clicking a Usage tab—both stay in sync.

Astro Vanilla Svelte Vue React

Other frameworks: Astro · Vanilla · Svelte · React