Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 631 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 631 Bytes

somoto

A SolidJS port for Sonner.

somoto is a taost library for SolidJS.

For demonstration, please visit The site.

Quick start

Install:

npm i somoto
# or
yarn add somoto
# or
pnpm add somoto
# or
bun add smoto

Usage:

import { Toaster, toast } from 'somoto';

function App() {
  return (
    <div>
      <Toaster />
      <button onClick={() => toast('Toast for you!')}>Give me a toast</button>
    </div>
  );
}

Documentation

Find API references in the doc.