🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@croz/nrich-notification-mui

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@croz/nrich-notification-mui

Contains the UI implementation of notifications for the MUI component library

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
3
Created
Source

@croz/nrich-notification-mui

Overview

@croz/nrich-notification-mui is a MUI wrapper for the @croz/nrich-notification-core module. For the display of the notifications a Snackbar and Alert are used.

Setup

To use this module in your project run npm install @croz/nrich-notification-mui or yarn add @croz/nrich-notification-mui

Usage

  • Add Notifications component on a part of your app, usually on App or some other higher level component.
import { Notifications } from "@croz/nrich-notification-mui";

const App = () => {
  return (
    <div>
      <Notifications autoClose={3000} position="top-right"/>
      {/* other components... */}
    </div>
  )
}

Available props for the Notifications component are:

Prop nameDescriptionPossible valuesDefault value
autoCloseThe duration after which the notification closes
expressed in milliseconds. If left undefined, it doesn't close.
number in milliseconds, or undefinedundefined
positionSpecifies the notification position on the page,
derived from a set of predefined positions available in MUI
top-left, top-center, top-right,
bottom-left, bottom-center, bottom-right
bottom-right

Keywords

croz

FAQs

Package last updated on 20 Oct 2023

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