T
sonner-solid
v1.2.0

Installation

npm

bash
npm install sonner-solid

yarn

bash
yarn add sonner-solid

pnpm

bash
pnpm add sonner-solid

bun

bash
bun add sonner-solid

Basic Setup

Add the <Toaster /> component to your app.

jsx
import { Toaster } from 'sonner-solid';

// In your app component or layout
export default function App() {
  return (
    <>
      <Toaster />
      {/* Your app content */}
    </>
  );
}

Toast()

Use it to render a toast. You can call it from anywhere, even outside of React.