Alert

A!ert

Customizable toast component for React

Installation

npm install alert

Usage

import { Toaster, toast } from 'alert';
const App = () => {
return (
<div>
<Toaster/>
<button onClick={() => toast('This is a toast.')}>Create a toast</button>
</div>
);
}

Types

toast('This is a default toast')

Position

<Toaster position='bottom-right'/>

©2024 Alert - Made by Gersti