@j4jinxx/snackbar
v1.0.0
Published
Minimal Snackbar/Notification React Component
Downloads
7
Maintainers
Readme
Snackbar
Minimal Snackbar/Notification React Component
Install
npm i @j4jinxx/snackbarImport
import Snackbar from '@j4jinxx/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') |
