Basic Components
Alert Notification
The alert notification component is used to display global messages, supporting multiple types such as success, warning, error, etc., with customizable display duration and detailed content.
Usage Examples
Basic Usage
The most basic notification usage for displaying different types of global messages.
300px
Different Types
Call different methods to display different types of notifications: success, warning, error.
300px
Custom Duration
Use the duration option to customize the notification display duration.
300px
Message with Details
Use the details option to add detailed information to notifications.
300px
Properties
Property | Basic component module for translation keys shared across all component documentation pages | Type | Default |
---|---|---|---|
type | Notification type (success, warning, error) | string | success |
message | Notification message content | string | |
details | Detailed information | string | |
duration | Display duration (milliseconds) | number | 5000 |
closable | Whether closable | boolean | true |
Design Empowers, Innovation Unlimited