Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

essence-snackbar

1.0.6 • Public • Published

Essence SnackBar - SnackBar component

Options:

  • visible: true - show the snackbar & false (default) - hide the snackbar
  • delay: 2000 (default) - miliseconds delay to hide
  • onStart: callback function when SnackBar component has visible toggle to true
  • onEnd: callback function when SnackBar component has visible toggle to false
  • onPause: callback function when SnackBar component has an active mouseOver event
  • onResume: callback function when SnackBar component has an active mouseOout event

How to use

import SnackBar from 'essence-snackbar';
 
<SnackBar classes={'e-text-green-500'} visible={false} delay={5000}>
 You got a new message!
</SnackBar>

install

npm i essence-snackbar

Downloadsweekly downloads

13

version

1.0.6

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability