1.0.0 • Published 3 years ago

@aiui/ai-snackbar v1.0.0

Weekly downloads
-
License
GPL
Repository
github
Last release
3 years ago

AiSnackbar

Minimal Snackbar / Notification React Component

npm bundle size npm bundle size npm download

Install

npm i @aiui/ai-snackbar

Import

import AiSnackbar from '@aiui/ai-snackbar';

Props

NameTypeDefaultDescription
openedboolfalseIf true, the snackbar is open
messagestringSnackbar Message
onClosefunc( ) => { }Callback fired when the component requests to be closed
kindstringdefaultSnackbar Kind ('default', 'info', 'error', 'success', 'warning')