0.1.32 • Published 7 months ago

@trymagic/toast v0.1.32

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Magic Toast is an opinionated toast component for React. You can read more about why and how it was built here.

Usage

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

npm install @trymagic/toast

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 '@trymagic/toast';

// ...

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

Documentation

Find the full API reference in the documentation.

0.1.32

7 months ago

0.1.30

7 months ago

0.1.31

7 months ago

0.1.29

8 months ago

0.1.27

8 months ago

0.1.26

8 months ago

0.1.25

9 months ago

0.1.0-beta.2

9 months ago

0.1.0-beta.1.5

9 months ago

0.1.0-beta.1

9 months ago

0.1.0-beta.0

9 months ago

0.1.22

9 months ago

0.1.21

9 months ago

0.1.2

9 months ago

0.1.11

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.29

9 months ago

0.0.28

9 months ago

0.0.27

9 months ago

0.0.26

9 months ago

0.0.25

9 months ago

0.0.24

9 months ago

0.0.23

9 months ago

0.0.22

9 months ago

0.0.21

9 months ago

0.0.2

9 months ago

0.0.191

9 months ago

0.0.19

9 months ago

0.0.18

9 months ago

0.0.17

9 months ago

0.0.16

9 months ago

0.0.15

9 months ago

0.0.14

9 months ago

0.0.13

9 months ago

0.0.12

9 months ago

0.0.11

9 months ago

0.0.1

9 months ago