🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@projectcor/snackbar

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@projectcor/snackbar

Snackbar for COR

latest
npmnpm
Version
2.0.0
Version published
Weekly downloads
67
-18.29%
Maintainers
0
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 01 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts