1.1.1 • Published 9 years ago

zooid-ui-toast v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

zooid-ui-toast

React Toast Component

Install

npm install --save zooid-ui-toast

Props

PropTypeDefaultDescription
messagestringText to display. Keep it short.
timeoutnumber3000msDisplay duration in milliseconds
classNamestringAdditional css classes for your toast

Example

import React, { Component } from 'react'
import Toast from 'zooid-ui-toast'

export default class App extends Component {
  render() {
    return <div>
      <h1>App</h1>
      <Toast message='hello world' timeout={5000}/>
    </div>
  }
}