New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@snackstack/mui

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snackstack/mui

To install `@mui/material`, follow their [installation guide](https://mui.com/material-ui/getting-started/installation/).

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-52.94%
Maintainers
1
Weekly downloads
 
Created
Source

@snackstack/mui

A Material UI adapter for @snackstack/core

Latest version published to npm.js npm downloads per month Project license

Installation

To install @mui/material, follow their installation guide.

⚠️ Note: Only @mui/material v5 or later is supported.

To install the latest stable version with npm, run the following command:

npm install @snackstack/core @snackstack/mui

Or if you're using yarn:

yarn add @snackstack/core @snackstack/mui

Setup

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>

Learn more about the Material UI adapter

Learn more about managing notifications

Keywords

FAQs

Package last updated on 13 Jul 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc