NexoreUIv1.4
InstallationComponents41IconsNexore MakeAI
Create ProjectSTUDIOGitHub
NexoreUI
41 comps
Create Project
Studio
Installation
Components Overview
40+
Icons
300+
Categories6 groups
Button
Input
Switch
Slider
Rating
File Upload
Card
Accordion
Tabs
Table
Stepper
Scroll Area
Navigation
Dock
Data Display
Thinking Indicator
AI
Tool Call Card
AI
Agent Status Pill
AI
Command
Theme: indigo
Studio
DocsAlert

Alert

Informational alert messages and notifications.

NextBadge
On This Page
Quick Actions
Project Studio
New
Nexore Make (AI)Source on GitHub

Alerts

Attention-grabbing components to highlight alerts, success, and warnings.

When to use which variant

default / infoStandard informational statuses, updates, system notices
successConfirming positive operations completed successfully (profile saved, payment completed)
warningNon-blocking notifications requiring direct attention (subscription ending, resource thresholds)
destructiveBlocking errors, action failures, network connection disruptions
minimalLow-priority notifications inside content blocks or dashboards sidebars
bannerTop-level full-screen announcements or urgent alerts alerts

Interactive Playground

Live CanvasInteractive
Attention Needed
Please review your account details before continuing.
Controls(5)
variant
select

Visual style of the alert

title
text

Title of the alert

description
text

Description text of the alert

animate
boolean
Toggle state:

Whether to enable entry slide-in animation

dismissible
boolean
Toggle state:

Whether the alert can be closed by the user

Generated JSX
Source
import { Alert } from "nexoreui"

<Alert />

Showcase & Examples

Default Alert (Automatic Info)

Information Update
A new system build has been successfully deployed.
component.tsx

Dismissible Warning Alert

Subscription Warning
Your credit card is expiring next week.
component.tsx

Success Alert

Success
All files have been uploaded correctly to S3.
component.tsx

Destructive Alert (Error)

Database Error
Could not connect to localhost:5432. Connection refused.
component.tsx

Cyber Alert (Retro)

SYSTEM WARNING
Unauthorized access detected.
component.tsx
Page 1 of 2

API Reference (Props)

PropTypeDefaultDescription
variant"default" | "destructive" | "success" | "warning" | "info" | "glass" | "floating" | "minimal" | "neon" | "cyberpunk" | "gradient" | "banner""default"Visual style of the alert layout.
titleReact.ReactNode—Title heading text of the alert.
descriptionReact.ReactNode—Supporting message description text.
iconReact.ReactNode—Custom Lucide icon element (supplied automatically based on variant if empty).
dismissiblebooleanfalseWhether the user can close the alert by clicking a close 'X' button.
onDismiss() => void—Callback triggered when the close button is clicked.
animatebooleantrueEnables slide-in slide-out entry animations.
actionTextstring—Label of action buttons on banner layout alerts.
onAction() => void—Action callback triggered by action button clicks.

♿ Accessibility (a11y)

  • Alert Role: The component automatically sets role="alert", informing screen readers of high-priority content updates instantly.
  • Keyboard Close: If dismissible is set, focus lands on the close button which is tab-focusable and clickable via Space or Enter.