Movatterモバイル変換


[0]ホーム

URL:


Toast

An accessible and beautiful toast library for React.

View on GitHub

Framework guides

AstroNext.jsRemixTanStack Start

Getting Started

  1. Install the library:
bash
  1. Add the toast provider:
jsx
// 📃 main.tsximport { Toaster }from '@pheralb/toast';ReactDOM.createRoot(document.getElementById('root')!).render(  <React.StrictMode>    <App />    <Toaster />  </React.StrictMode>,);
  1. Usage:
jsx
// 📃 index.tsximport { toast }from "@pheralb/toast";export default function Index() {  return (    <>      <button        onClick={()=>          toast.success({            text:"pheralb/toast",            description:"✨ A beautiful toast library for React",          })        }      >        <span>Render a toast</span>      </button>    </>  );}

On this page


[8]ページ先頭

©2009-2025 Movatter.jp