Notification Popup
Notification Popup displays contextual feedback messages for success, error, warning, alert, and input events with RTL support.
Installation
npx sdaia-ui@latest add notification-popup
Usage
import { NotificationPopup } from "@/components/ui/notification-popup"<NotificationPopup type="success" />Examples
Alert
Popup notification for general alerts requiring user attention.
<NotificationPopup type="alert" title="Turn on Notifications!" description="Get timely updates and never miss out on what matters." actions={Warning
Popup notification indicating a potential issue or caution.
<NotificationPopup type="warning" title="Warning!" description="You don't have permission to access this feature." actions={Error
Popup notification for errors and failed operations.
<NotificationPopup type="error" title="Error!" description="Something went wrong, Try again." actions={<Button variant="primary" destructive size="md" fullWidth>Try Again</Button>}Success
Popup notification confirming a successful action.
<NotificationPopup type="success" title="Success!" description="Just a few more steps left, Please go on." actions={<Button variant="primary" size="md" fullWidth>Continue</Button>}Input
Popup notification prompting the user for input.
<NotificationPopup type="input" title="Want 10% Off?" description="Sign up for our newsletter for early access & get 10% off your first order, including sale items!" actions={API Reference
NotificationPopupProps
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 |