2.0.0 • Published 1 year ago

@projectcor/snackbar v2.0.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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

1.0.3-0

1 year ago

2.0.0

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.1-5

2 years ago

1.0.2-0

2 years ago

1.0.1-4

2 years ago

1.0.1-3

2 years ago

1.0.1-2

2 years ago

1.0.1-1

2 years ago

1.0.1-0

2 years ago