Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

solid-toast

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-toast

Customizable Toast Notifications for SolidJS

  • 0.0.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13K
increased by260.65%
Maintainers
1
Weekly downloads
 
Created
Source

Solid Toast header image showing a cute toaster with a toast popping out

NPM Version Build Status

Create beautiful, customizable toasts in SolidJS.

Features

  • Easily Customizable
  • Promise API
  • Lightweight
  • Accessible

Installation

With yarn
yarn add solid-toast
With NPM
npm install solid-toast

Getting Started

Add a Toaster Component to the top level of your component tree. This will be the container element that will display all the toasts. Now you can trigger toast() from anywhere!

import toast, { Toaster } from 'solid-toast';

const notify = () => toast('Here is your toast.');

const App = () => {
  return (
    <div>
      <button onClick={notify}>Make me a toast</button>
      <Toaster />
    </div>
  );
};

Documentation

Coming Soon

Acknowledgements

This project is inspired by

Keywords

FAQs

Package last updated on 24 May 2022

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc