1.0.3 • Published 3 years ago
react-sae-toast v1.0.3
react-sae-toast
A react toast library
Installation
NPM
npm install @akusyaiful/react-sae-toastYarn
yarn add @akusyaiful/react-sae-toastGetting Started
import { SaeToast } from "@akusyaiful/react-sae-toast";Usage
<SaeToast
open={open}
message="Hello World"
type="success"
position="top-right"
/>Props
| Name | Type | Default | Description |
|---|---|---|---|
| message | string | - | The message that will appear |
| open | boolean | false | If true, the component is shown. |
| type | string | The type of toast component. | |
| position | 'top-right', 'top-center', 'top-left', 'bottom-right', 'bottom-center', 'bottom-left' | 'top-right' | Side from which the toast will appear. |