Overview
Transient or persistent notifications.Import
Usage
Live Preview
Run Locally
npm run tsx:core-gallery
Props
- message: string — Body text.
- title?: string — Label.
- type?: ‘info’ | ‘success’ | ‘warning’ | ‘error’ — Visual accent.
- duration?: number — Auto-close duration in ms.
- autoClose?: boolean — Enable/disable timer (default true if duration set).
- BaseProps: container styling.
Methods
- setMessage(text), setTitle(text), setType(type).
- setDuration(ms), setAutoClose(bool), close(), show(), hide().
- getType(), getMessage().
Statics
- Notification.info/success/warning/error(message, title?).
Installation
Import
Quick Start
Production Examples
Best Practices
- Usa
autoCloseper feedback transiente; evita stacking eccessivo.
