Svelte Toast

screenshot of Svelte Toast
svelte
vite
tailwind
daisyui

Simple elegant toast notifications

Overview

npm (scoped) is a simple and elegant toast notification component for modern web frontends. It is lightweight and well-tested, with only 20kB minified and 8kB gzipped. It can be used with Vanilla JS or as a Svelte component.

Features

  • Supporting Multiple Toast Containers: Send toasts to different container targets within your app.
  • Removing Multiple Toasts (Outdated): Deprecated feature for backward compatibility.
  • Accepting Object as First Param: push() and set() functions can also take an object as the first parameter.
  • Pausable Toasts: Progress bar tweens can be paused when the mouse cursor hovers over the toast item.
  • Send Svelte Component as a Message: Push a Svelte component instead of a standard message.
  • onpop() Callback Function: Run a callback function when a toast is closed.
  • Styling with User-Defined Classes: Pass custom class names to each toast item.
svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

daisyui
daisyUI

daisyUI adds classes to Tailwind CSS for all common UI components. Classes like btn, card, etc. This allows us to focus on important things instead of making basic elements for every project.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

prismjs
Prism JS

PrismJS is an open-source, lightweight, and extensible syntax highlighting library that supports a wide range of programming languages and markup formats.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.