3.0.15 • Published 8 months ago
@mosespace/toast v3.0.15
Usage
To start using the library, install it in your project:
npm install @mosespace/toast@latestadd 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
8 months ago
3.0.14
8 months ago
3.0.13
10 months ago
3.0.12
10 months ago
3.0.11
10 months ago
3.0.10
10 months ago
3.0.9
10 months ago
3.0.8
10 months ago
3.0.7
10 months ago
3.0.6
10 months ago
3.0.5
10 months ago
3.0.4
10 months ago
3.0.3
10 months ago
3.0.2
10 months ago
3.0.1
10 months ago
3.0.0
10 months ago
2.0.0
10 months ago
1.0.0
10 months ago