
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@dccs/react-notification-mui
Advanced tools
Simple Notifications https://dccs-it-business-solutions.github.io/react-notification-mui/
You should install react-notification-mui with npm or yarn:
npm install @dccs/react-notification-mui
or
yarn add @dccs/react-notification-mui
This command will download and install react-notification-mui
To use display notifications wrap you application with the NotificationContextProvider
<NotificationContextProvider>
<YourApp />
</NotificationContextProvider>
The NotificationContextProvider provides the following functions:
addInfoaddWarningaddErroraddCustomNotificationmessage: string | React.ReactNodetitle?: string | React.ReactNodefunction DisplayNotifications() {
const { addInfo, addWarning, addError } =
React.useContext < INotificationContext > NotificationContext;
function handleClick() {
addInfo("my message");
addWarning("my message");
addError("my message");
addInfo(<span>my message</span>);
addWarning(<span>my message</span>);
addError(<span>my message</span>);
addInfo("my message", "my title");
addWarning("my message", "my title");
addError("my message", "my title");
addInfo(<span>my message</span>, <span>my mytitle</span>);
addWarning(<span>my message</span>, <span>my mytitle</span>);
addError(<span>my message</span>, <span>my mytitle</span>);
}
return <div onClick={handleClick}>Show Notifications</div>;
}
If you want to display a custom notification you can use the addCustomNotification method.
notification: ICustomNotificationProps
| Name | Type | Default |
|---|---|---|
| message | `string | React.ReactNode` |
| autoHideDuration | `number | undefiend` |
| enableClickAway | `boolean | undefiend` |
| transitionDuration | `number | undefiend` |
| snackBarStyle | `React.CSSProperties | undefiend` |
| snackBarMessageStyle | `React.CSSProptiers | undefiend` |
| snackBarMessageVariant | ThemeStyle` | undefiend` |
| snackBarTitleStyle | `React.CSSProptiers | undefiend` |
| snackBarTitleVariant | ThemeStyle` | undefiend` |
| title | `string | React.ReactNode |
| action | `React.ReactNode | undefiend` |
function DisplayMyCustomNotification(){
const { addCustomNotification } =
React.useContext < INotificationContext > (NotificationContext);
function handleClick(){
addCustomNotification({message:"my message"});
}
return <Butonn onClick={handleClick}>Show Custom Notifications</Button>
}
You are able to customize the look of the info, warning and error notifications threw properties given to to the NotificationContextProvider
@dccs/react-notification-mui is MIT licensed
FAQs
React-Autocomplete without the tears
We found that @dccs/react-notification-mui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.