1.3.1 • Published 3 years ago
@snackstack/mui v1.3.1
Installation
To install @mui/material, follow their installation guide.
⚠️ Note: Only
@mui/materialv5 or later is supported.
To install the latest stable version with npm, run the following command:
npm install @snackstack/core @snackstack/muiOr if you're using yarn:
yarn add @snackstack/core @snackstack/muiSetup
Make sure you have setup the SnackProvider component as shown in the Get started section of the documentation.
Then you just need to import the MuiSnack component and pass it as the value for the Component property on the SnackStack component.
import React from 'react';
import ReactDOM from 'react-dom/client';
import { SnackProvider, SnackStack, SnackManager } from '@snackstack/core';
+ import { MuiSnack } from '@snackstack/mui';
const snackManager = new SnackManager({ maxSnacks: 7 });
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
  <React.StrictMode>
    <SnackProvider manager={snackManager}>
      <App />
+     <SnackStack Component={MuiSnack} />
    </SnackProvider>
  </React.StrictMode>1.3.1
3 years ago
1.3.0
3 years ago
0.0.0-experimental-8f4b398e5
3 years ago
0.0.0-experimental-acf3bd5d0
3 years ago
0.0.0-experimental-7f302d959
3 years ago
0.0.0-experimental-c1e38fb71
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.0.0
3 years ago
0.0.0-experimental-2c600718f
3 years ago
0.0.0-experimental-ab67907b3
3 years ago
0.0.0-experimental-a653193cb
3 years ago
0.0.0-experimental-01b42c048
3 years ago