npm.io
1.0.0-16 • Published 8 years ago

@react-spectre/toast

Licence
MIT
Version
1.0.0-16
Deps
2
Vulns
0
Weekly
0
Stars
65

@react-spectre/toast

React components for Spectre.css's toast




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:

  1. primary
<Toast primary>This is a primary toast</Toast>
  1. success
<Toast success>This is a success toast</Toast>
  1. warning
<Toast warning>This is a success toast</Toast>
  1. error
<Toast error>This is a success toast</Toast>