Socket
Book a DemoInstallSign in
Socket

mui-nutella

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mui-nutella

Nutella is a notification system

1.1.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Mui-Nutella

An awesome and delicious notification system

With nutella you can have awesome notification without wasting your time. its truly a delicious experience

Nutella boi

Demo

Demo and notification builder

Install it

nikandlv@nikandlv.ir:~$ npm i mui-nutella

Import it

import Nutella from "mui-nutella";

Wrap it

function Wrapper() {
  return (
    <div>
      <Nutella.View />
    </div>
  );
}

Push it

const config = {};
const actions = [<Button>My Button!</Button>];
const notification = {};
const position = "top-left";

function pushMe() {
  Nutella.push("my-notification-key", [position, notification, actions, config]);
}

Dismiss it

function goAway() {
  Nutella.dismiss("my-notification-key");
}

Available Configuration

const notification = {
  name: "Android Notification",
  icon: <Whatshot />,
  date: "Nov 6",
  accent: "rgb(63, 81, 181)",
  title: "Awesome Notification",
  body: "this is an awesome notification !",
  rounded: false,
  variant: "oreo",
  expandable: true,
  onClick: (expanded, setExpandMode) => {
    setExpandMode(!expanded);
  },
};

<Nutella.View /> also takes a variant props which by default is fixed and also can be absolute relative to the parent

Libraries

Nutella uses react-mui-android-notification

Keywords

nutella

FAQs

Package last updated on 23 Dec 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.