1.0.7 • Published 5 years ago

toast-notifications v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

notification

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save toast-notifications

Usage

import React, { Component } from 'react'

import { Notification , NotificationWrapper} from 'notification'
import 'notification/dist/index.css'

class Example extends Component {

  const createNotification=(title, info, duration, type)=>{
   Notification(title, info, duration, type)
 }
  render(){
      <div>
        <button className="btn btn-info" onClick={() => createNotification('título','mensaje', 300000000, 'success')}>SUCCESS</button>
        <button className="btn btn-info" onClick={() => createNotification('título', 'info',  3000, 'danger')}>DANGER</button>
        <NotificationWrapper/>
      </div>
  }
}

License

MIT © Valentina Olivares(https://github.com/Valentina Olivares)

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago