Overview
The notification panel component provides a mobile-style notification interface with hover-triggered animations. It features a phone mockup with app icons and a sliding notification banner that appears with smooth scale and blur transitions when the user interacts with the component.Features
- Realistic mobile phone interface with app icons
- Smooth notification slide-in animation
- Hover and click interaction support
- Animated lock icon with state-based color changes
- Customizable notification content
- Dark mode compatible
- Gradient overlay for improved text contrast
Use cases
- Mobile app previews
- Notification system demonstrations
- Product landing pages
- Interactive UI showcases
- Payment alert displays
- Marketing materials
Installation
Usage
Imports
The component requires the following imports:Props
The main title displayed at the bottom of the component.
The description text shown below the card title.
The title text displayed in the notification banner.
The notification message content.
The timestamp shown in the notification.
Examples
Payment notification
Social notification
System alert
Customization
Animation variants
The component includes several customizable animation variants:phoneVariant: Controls phone screen movement on interactionnotificationVariant: Manages notification appearance with scale and blurlockVariant: Handles dark mode lock icon color transitionslockLightVariant: Manages light mode lock icon stylingparentvariant: Controls animation stagger timing
Styling options
Customize the appearance using Tailwind CSS classes:- Phone container with rounded borders and neutral backgrounds
- Notification banner with backdrop blur and ring borders
- App icon wrappers with gradient effects
- Bottom gradient overlay for text visibility
- Responsive sizing with max-width constraints
The component automatically displays the current time in 24-hour format at the top of the phone screen.
IconWrapper component
The internalIconWrapper component creates app icon containers: