Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / @skava/ui   js

Repository URL to install this package:

Version: 2.8.8 

AutoDismissingSnackBar

could be AutoHideSnackBar? but AutoHiding?

Overview

  1. when the components mounts, observe changes to isVisible to trigger the auto closing handlers
  2. add props for onAutoDismiss (defaults to empty function in production, and a function that logs info in development)
  3. animationDuration (number, optional)
  4. autoDismissingDuration (number, optional)
  5. renderProps are needed so we could use this component with another preset
  • for example SwipeToDismissSnackBar

TODO

  • 2 components that are re-usable - nothing to do with SnackBar
  • ^ use Generics
  • SwipeToDismiss
  • AutoDismiss

Related

  • see components/features/SnackBar/SnackBar.tsx