ui

Alert

A callout for displaying important information. Built with Base UI and Tailwind CSS. Copy-paste ready.

Installation

Usage

Examples

With Icon

Place any Lucide icon directly inside Alert before the title and description to reinforce the message type visually.

With Actions

Extends the icon alert with one or more action buttons in the footer — useful for alerts requiring a user decision.

Info Alert

Uses the info variant with a blue color scheme to surface neutral information or tips.

Success Alert

Uses the success variant with a green color scheme to confirm a completed action or positive system state.

Warning Alert

Uses the warning variant with an amber color scheme to flag a potential issue that requires attention.

Error Alert

Uses the destructive variant with a red color scheme to communicate an error or blocking problem.

Stacked in Frame

Multiple alerts of different severity levels stacked vertically inside a Frame container — a realistic notification panel layout.

Actions in Frame

An alert with CTA buttons embedded inside a framed card, useful for onboarding banners or in-app upgrade prompts.

Feature Discovery

A dismissible banner that introduces a new feature with a visual accent, a short description, and a "Learn more" link.

Announcement Banner

A full-width violet-tinted banner with a megaphone icon and a close button. Use it for product announcements or promotional messages at the top of a page.

A bottom-anchored cookie banner with Decline and Accept All buttons. Clicking either option hides the alert, mirroring a real consent flow.

Storage Limit Warning

A warning-variant alert embedded in a Frame that shows current storage usage as a percentage and an inline progress bar, with an Upgrade CTA.

Update Available

An info-variant alert that transforms into a success state after the user clicks "Update now". A simulated async delay with a loading label provides realistic feedback.

Email Verification

An actionable alert prompting the user to verify their email address. The Resend button triggers a 60-second countdown before it becomes clickable again.