Skip to main content

Install the package

Add Solid Toast to your project using your preferred package manager:
npm install solid-toast

Requirements

Solid Toast requires SolidJS as a peer dependency:
  • solid-js: ^1.5.4 or higher
If you don’t have SolidJS installed yet, add it to your project:
npm install solid-js

Bundle size

Solid Toast is optimized for minimal bundle impact:
  • Minified + gzipped: 4kb
  • Tree-shakeable: Only imports what you use
  • Zero dependencies: No additional packages required

What’s included

When you install Solid Toast, you get:
  • toast() function for creating notifications
  • <Toaster /> component for rendering toasts
  • Built-in toast variants (success, error, loading, custom)
  • Promise API for async operations
  • Full TypeScript type definitions

Next steps

Now that you have Solid Toast installed, you’re ready to create your first toast notification.

Quick start

Learn how to use Solid Toast in your application

Build docs developers (and LLMs) love