1.0.0 • Published 4 years ago
@aiui/ai-snackbar v1.0.0
AiSnackbar
Minimal Snackbar / Notification React Component
Install
npm i @aiui/ai-snackbarImport
import AiSnackbar from '@aiui/ai-snackbar';Props
| Name | Type | Default | Description |
|---|---|---|---|
| opened | bool | false | If true, the snackbar is open |
| message | string | Snackbar Message | |
| onClose | func | ( ) => { } | Callback fired when the component requests to be closed |
| kind | string | default | Snackbar Kind ('default', 'info', 'error', 'success', 'warning') |
1.0.0
4 years ago