Installation
yarn add @react-spectre/toast
npm install @react-spectre/toast --save
Usage
import { Toast } from '@react-spectre/toast'
Variants
There are multiples avialable variants that can be passed as props:
- primary
<Toast primary>This is a primary toast</Toast>
- success
<Toast success>This is a success toast</Toast>
- warning
<Toast warning>This is a success toast</Toast>
- error
<Toast error>This is a success toast</Toast>