يعرض الإشعار المنبثق رسائل ملاحظات سياقية لأنواع النجاح والخطأ والتحذير والتنبيه والإدخال.
Loading demo: notification-popup-real-world
npx sdaia-ui@latest add notification-popup
import { NotificationPopup } from "@/components/ui/notification-popup"<NotificationPopup type="success" />إشعار منبثق للتنبيهات العامة التي تتطلب انتباه المستخدم.
Loading demo: notification-popup-alert
إشعار منبثق يُشير إلى مشكلة محتملة أو يستدعي الحذر.
Loading demo: notification-popup-warning
إشعار منبثق للأخطاء والعمليات الفاشلة.
Loading demo: notification-popup-error
إشعار منبثق يؤكّد إجراءً ناجحاً.
Loading demo: notification-popup-success
إشعار منبثق يطلب إدخالاً من المستخدم.
Loading demo: notification-popup-input
خصائص مكوّن NotificationPopup.
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 |