Notification Popup displays contextual feedback messages for success, error, warning, alert, and input events with RTL support.
Loading demo: notification-popup-real-world
npx sdaia-ui@latest add notification-popup
import { NotificationPopup } from '@/components/ui/NotificationPopup';<NotificationPopup type="success" />Use surface="glass" to enable Glass Effect.
Loading demo: notification-popup-glass
Popup notification for general alerts requiring user attention.
Loading demo: notification-popup-alert
Popup notification indicating a potential issue or caution.
Loading demo: notification-popup-warning
Popup notification for errors and failed operations.
Loading demo: notification-popup-error
Popup notification confirming a successful action.
Loading demo: notification-popup-success
Popup notification prompting the user for input.
Loading demo: notification-popup-input
Props for the NotificationPopup component.
Prop | Type | Default | Required |
|---|---|---|---|
type | 'success' | 'error' | 'warning' | 'alert' | 'input' | 'success' | optional |
title | ReactNode | - | required |
description | ReactNode | - | optional |
icon | ReactNode | - | optional |
actions | ReactNode | - | optional |
children | ReactNode | - | optional |
footer | ReactNode | - | optional |
dir | 'ltr' | 'rtl' | - | optional |
rtl | boolean | false (deprecated) | optional |
actionsLayout | "single" | "pair" | "stacked" | — | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Fills its container up to 360px wide (480px for the input type). |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Shrinks to the width of the screen's container, with the mobile token values. |