2.1.0 • Published 11 months ago

burgos-snackbar v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Snackbar

A hook, context and component for rendering @mui/material snackbar globally

Preparation

wrap your app with <SnackbarProvider> and place the <Snackbar /> component:

<SnackbarProvider>
    <App />
    <Snackbar />
<SnackbarProvider/>

Usage

Use the useSnackbar hook to retrieve the method and call it passing the severity and text as an object:

import { useSnackbar } from 'burgos-snackbar'

export const App = () => {
    const { snackbar } = useSnackbar()

    const handleClick = () => {
        snackbar({severity: 'success', text: 'Click successful'})
    }
}
2.1.0

11 months ago

2.0.18

12 months ago

2.0.17

12 months ago

2.0.16

12 months ago

2.0.15

12 months ago

2.0.14

12 months ago

2.0.13

12 months ago

2.0.12

12 months ago

2.0.11

12 months ago

2.0.10

12 months ago

2.0.9

12 months ago

2.0.8

12 months ago

2.0.7

12 months ago

2.0.6

12 months ago

2.0.5

12 months ago

2.0.4

12 months ago

2.0.3

12 months ago

2.0.2

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.1.11

12 months ago

1.1.10

12 months ago

1.1.9

12 months ago

1.1.8

12 months ago

1.1.7

12 months ago

1.1.6

12 months ago

1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.0

12 months ago