Giter Club home page Giter Club logo

react-alert-template-mui's Introduction

react-alert-template-mui

Installation

npm install react-alert-template-mui

Demo

Edit react-alert-template-mui example

How to Use

Simple alert

alert.show("Oh look, an alert!");

Alert with title

alert.show("This is an alert with title!", {
  title: "Random Alert Title",
});

Change copy on close button

alert.show("This is an alert with title!", {
  title: "Random Alert Title",
  closeCopy: "Cancel",
});

Alert with extra actions

alert.show("This is an alert with extra actions!", {
  title: "Alert with extra actions!",
  actions: [
    {
      copy: "Do something",
      onClick: () => setAction("Actioned!"),
    },
  ],
});

react-alert-template-mui's People

Contributors

chazzhou avatar mayyyc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

react-alert-template-mui's Issues

Font-size is too small

Font-size default is too small, I can't see, in the original theme is good, but in this theme is small. How I can change that?

Peer dependency issues

Hello,
When I update packages in my project, I am getting peer dependency warnings that appear to be stemming from your package. Please correct me if I am wrong.

This is what I am seeing:

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react-alert-template-mui/node_modules/react
npm WARN   react@"^16.11.0" from [email protected]
npm WARN   node_modules/react-alert-template-mui
npm WARN     react-alert-template-mui@"^1.0.7" from the root project
npm WARN   4 more (@material-ui/core, @material-ui/styles, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"17.0.2" from [email protected]
npm WARN node_modules/react-alert-template-mui/node_modules/react-dom
npm WARN   peer react-dom@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm WARN   node_modules/react-alert-template-mui/node_modules/@material-ui/core
npm WARN   3 more (@material-ui/styles, @material-ui/system, @material-ui/utils)
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"17.0.2" from [email protected]
npm WARN   node_modules/react-alert-template-mui/node_modules/react-dom
npm WARN     peer react-dom@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm WARN     node_modules/react-alert-template-mui/node_modules/@material-ui/core
npm WARN     3 more (@material-ui/styles, @material-ui/system, @material-ui/utils)

My project is running React 18.2.0.

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.