You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

brgndy-toast

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brgndy-toast

toast-library-component


Version published
Maintainers
1
Created

Readme

Source

brgndy-react-toast

Toast Library Component for React

- Running Video

화면 기록 2024-06-16 오후 6 32 19

- Usage

function App() {
  const handleNotifyClick = () => {
    toast.notify('It is a notify message!', 1000);
  };

  const handleWarningClick = () => {
    toast.warning('This is a warning message!', 2000);
  };

  const handleErrorClick = () => {
    toast.error('This is an error message!', 3000);
  };

  const handleSuccessClick = () => {
    toast.success('This is a Success message!', 4000);
  };

  return (
    <>
      <button onClick={handleNotifyClick}>Show Notify Toast</button>
      <button onClick={handleWarningClick}>Show Warning Toast</button>
      <button onClick={handleErrorClick}>Show Error Toast</button>
      <button onClick={handleSuccessClick}>Show Success Toast</button>
      <ToastContainer />
    </>
  );
}

export default App;

- Caveat

First, the ToastContainer component must be defined in the root component.

FAQs

Package last updated on 16 Jun 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc