0.2.6 • Published 4 years ago

snackbar-react v0.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

A small but functional npm package

Install

Install using npm install snackbar-react

Usage

In a React app, use the Snackbar component:
import { SnackBarPopup as SnackBar, showSnackBar } from 'snackbar-react'

Snackbar props

NameTypeDefaultDescription
openBooleantruetrue or false
typestringnull'info' or 'success' or 'error'
messagestring''
handleClosefunctionnull
autoHideBooleantruetrue or false
autoHideDurationinteger5000value in ms