3.0.15 • Published 12 months ago

@mosespace/toast v3.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Usage

To start using the library, install it in your project:

npm install @mosespace/toast@latest

add the following to your tailwind.config.ts

  content: [
    ...
    './node_modules/@mosespace/toast/**/*.{js,ts,jsx,tsx}', // Include this line
  ],

Add <Toaster /> to your app, it will be the place where all your toasts will be rendered. After that you can use toast() from anywhere in your app.

import { Toaster, toast } from '@mosespace/toast';

// ...

function App() {
  return (
    <div>
      <Toaster />
      <button onClick={() => toast.success('My first toast')}>
        Give me a toast
      </button>
    </div>
  );
}

Documentation

Find the full API reference in the documentation.

3.0.15

12 months ago

3.0.14

12 months ago

3.0.13

1 year ago

3.0.12

1 year ago

3.0.11

1 year ago

3.0.10

1 year ago

3.0.9

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

3.0.5

1 year ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago