GithubHelp home page GithubHelp logo

react-hooks-toast

如图

使用方法:

import Toast from "react-hooks-toast";


Toast.info("Info", 2000, true);
Toast.success("操作成功", 2000);
Toast.danger("发送错误", 2000);
Toast.loading("Loading", 2000);
Toast.warning("警告", 2000);
Toast.primary("OK", 2000);

webpack配置:

module: {
    rules: [
        {
            test: /\.css$/,
            include: [
                path.join(__dirname, '../node_modules/react-hooks-toast')
            ],
            use: ['style-loader', 'css-loader', 'postcss-loader' ],
        },
        {
            test: /\.(eot|ttf|woff|woff2|svg)$/,
            loader: 'url-loader',
            options: { limit: 5000, name: 'static/fonts/[name].[ext]' },
            include: [
                path.join(__dirname, '../node_modules/react-hooks-toast')
            ]
        }
    ]
}

Moneko's Projects

3ds-fbi-link icon 3ds-fbi-link

Mac app to graphically push CIAs to FBI. Extra features over servefiles and Boop.

aicat icon aicat

Multiplatform Client for ChatGPT using SwiftUI, support iOS, iPadOS & MacOS

bewlybewly icon bewlybewly

Improve your Bilibili homepage by redesigning it, adding more features, and personalizing it to match your preferences. (English | 简体中文 | 正體中文 | 廣東話)

codeedit icon codeedit

CodeEdit App for macOS – Elevate your code editing experience. Open source, free forever.

jsencrypt icon jsencrypt

A Javascript library to perform OpenSSL RSA Encryption, Decryption, and Key Generation.

magiskonwsa icon magiskonwsa

Integrate Magisk root and Google Apps (OpenGApps) into WSA (Windows Subsystem for Android)

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.