Package Exports
- retro-toast
Readme
đŽ Retro-TV Toast
A retro-styled toast notification component for React & Next.js with authentic CRT monitor aesthetics, scanlines, and three customizable themes.
đē Features
đ¨ Three Distinct Themes
- Dark Theme: Classic CRT monitor with green scanlines (light text on dark background)
- Light Theme: Modern monitor display (dark text on light background)
- Custom Theme: User-defined background color with automatic text contrast
đ Authentic Retro Effects
- Moving CRT scanlines with different colors per theme
- TV noise/static overlay for vintage feel
- Pixel-perfect borders and corners
- VHS-style glitch animations on hover/exit
- Progress bar with pause-on-hover functionality
đ¯ Four Notification Types
- â Success: Green theme for positive confirmations
- â Error: Red theme for critical errors
- â ī¸ Warning: Yellow theme for warnings
- âšī¸ Info: Blue theme for informational messages
⥠Modern Features
- TypeScript support with full type definitions
- Customizable duration (1-10 seconds)
- Click-to-dismiss or auto-dismiss
- Smooth entrance/exit animations
- Responsive design for all screen sizes
- Hover to pause countdown
- Accessible with ARIA labels
đ Live Demo
đ https://retro-toast.vercel.app
đĻ Installation
npm install retro-toast
# or
yarn add retro-toast