NexoreUI
InstallationComponentsNexore MakeGitHub
GitHub
NexoreUIv0.1.2

Getting Started

Installation

Components

ButtonInputCardBadgeAlertAvatarAccordionModal / DialogTooltipTabsProgressSkeletonSliderSwitchRatingCommandTableStepperScroll AreaFile UploadNavigationIconsDock

Pro

ChartsData DisplayDark Mode ToolkitCommerceCookie ConsentSocialPremium EffectsLoaders

Animated

MarqueeNumber TickerAnimated NumberTyping AnimationBlur FadeBox RevealFile Preview CardImage Compare
MIT License
DocsAlert

Alert

Informational alert messages and notifications.

Next ComponentAvatar

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

Alert Playground
nexoreui
Live Preview
Attention Needed
Please review your account details before continuing.
Props Panel
select

Visual style of the alert

text

Title of the alert

text

Description text of the alert

boolean

Whether to enable entry slide-in animation

boolean

Whether the alert can be closed by the user

Generated Code
Open in GitHub
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.