NexoreUI
2.0
InstallationComponentsIconsTemplatesNewNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesNexore MakeCreate Project
InstallationComponents OverviewIcons
Categories (65)
ButtonInputCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerce
Modal (Dialog)AlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial
Aurora Border CardAurora Search PillAI Prompt InputCommandInteractive Code BlockPro AI
Media ShowcaseOverlays & DrawersPro ButtonsPro DashboardsPro E-CommercePro FeedbackPro FormsPro InputsPro LayoutsPro ListsPro MarketingPro NavigationPro TablesSpecial FormsUltra Components
OverviewPro CardsPro ObjectsSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
DocsAlert

Alert

Informational alert messages and notifications.

PreviousModal / Dialog
NextBadge
On This Page
Quick ActionsProject StudioNewNexore 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
1

Dismissible Warning Alert

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

Success Alert

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

Destructive Alert (Error)

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

Cyber Alert (Retro)

SYSTEM WARNING
Unauthorized access detected.
component.tsx
1
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.