Notification Glass
shadcn-glass-ui/notification-glassFreeComponent
Glass-themed toast notification with variant-based styling, icons, and dismiss functionality. * Provides visual feedback for user actions and system events. * * ## Features
Install it
npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/notification-glass.jsonSource
1/**2 * NotificationGlass Component3 *4 * Glass-themed toast notification with variant-based styling, icons, and dismiss functionality.5 * Provides visual feedback for user actions and system events.6 *7 * ## Features8 * - **shadcn/ui Compatible** - Variant API (default, destructive, success, warning)9 * - **Theme-aware styling** - Works with all 3 themes (glass, light, aurora) via CSS variables10 * - **Variant-specific icons** - Info (default), CheckCircle (success), AlertTriangle (warning), AlertCircle (error)11 * - **Glow effects on hover** - Variant-specific glow colors (blue, green, yellow, red)12 * - **Dismissible** - Close button with X icon13 * - **Responsive sizing** - Different text/icon sizes for mobile and desktop14 * - **ARIA support** - role="alert", aria-live="polite" for screen reader announcements15 *16 * ## CSS Variables17 * Customize styling via theme CSS variables:18 * - `--notification-bg` - Notification background color19 * - `--notification-border` - Notification border color20 * - `--notification-shadow` - Default box shadow21 * - `--notification-info-color` - Info icon color (blue)22 * - `--notification-info-icon-bg` - Info icon background23 * - `--notification-info-glow` - Info hover glow24 * - `--notification-success-color` - Success icon color (green)25 * - `--notification-success-icon-bg` - Success icon background26 * - `--notification-success-glow` - Success hover glow27 * - `--notification-warning-color` - Warning icon color (yellow)28 * - `--notification-warning-icon-bg` - Warning icon background29 * - `--notification-warning-glow` - Warning hover glow30 * - `--notification-error-color` - Error icon color (red)31 * - `--notification-error-icon-bg` - Error icon background32 * - `--notification-error-glow` - Error hover glow33 * - `--text-primary`, `--text-secondary`, `--text-muted` - Text colors34 *35 * @example Basic usage (default variant)36 * ```tsx37 * import { NotificationGlass } from 'shadcn-glass-ui'38 *39 * function MyComponent() {40 * const [showNotif, setShowNotif] = useState(true)41 *42 * return showNotif ? (43 * <NotificationGlass44 * variant="default"45 * title="New update available"46 * message="Version 2.0 is ready to install with new features."47 * onClose={() => setShowNotif(false)}48 * />49 * ) : null50 * }51 * ```52 *53 * @example Success notification54 * ```tsx55 * <NotificationGlass56 * variant="success"57 * title="Payment successful"58 * message="Your payment has been processed successfully."59// … truncated
More from shadcn-glass-ui
All 76 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Alert Glassalert-glass | shadcn-glass-ui | Components | Free | no deps | |
| Animated Background Glassanimated-background-glass | shadcn-glass-ui | Components | Free | no deps | |
| Avatar Glassavatar-glass | shadcn-glass-ui | Components | Free | no deps | |
| Badge Glassbadge-glass | shadcn-glass-ui | Components | Free | no deps | |
| Base Progress Glassbase-progress-glass | shadcn-glass-ui | Components | Free | no deps | |
| Button Glassbutton-glass | shadcn-glass-ui | Components | Free | no deps | |
| Card Glasscard-glass | shadcn-glass-ui | Components | Free | no deps | |
| Checkbox Glasscheckbox-glass | shadcn-glass-ui | Components | Free | no deps |
