@projectcor/snackbar
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Snackbar

Installation

npm install @projectcor/snackbar

Usage

Require snackbar after installation

import { Snackbar } from '@projectcor/snackbar/lib'

This component is composed by two MUI components, Snackbar and Alert.

The mains componet's props are:

open: bool (true | false)
onClose: function (callback called when the snackbar is hidden)
severity: 'error' | 'info' | 'success' | 'warning' (alert type)
autoHideDuration: 3000 (default time)
anchorOrigin: { vertical: 'bottom', horizontal: 'center' }  (snackbar position)
alertProps: object (here you can add every alert props that you need)
snackbarProps: object (here you can add every snack props that you need)

Options

All Snackbar props can be found at here

All Alert props can be found at here

Readme

Keywords

none

Package Sidebar

Install

npm i @projectcor/snackbar

Weekly Downloads

9

Version

1.0.3

License

none

Unpacked Size

20.5 kB

Total Files

11

Last publish

Collaborators

  • jtovard
  • danielguzman
  • oradys
  • carlosmolerocor
  • gabrielbit
  • cordesarrollo
  • cordeployment