1.0.3 • Published 2 years ago

volkeno-alertify v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Volkeno-Alertify

ReactJS, awesome notification toast

NPM JavaScript Style Guide

Install

npm install --save volkeno-alertify

Usage

import React, { Component } from 'react'

import { VolkenoAlertify } from 'volkeno-alertify'
import 'volkeno-alertify/dist/index.css'

class Example extends Component {
  render() {
    return <VolkenoAlertify
              title="My Title"
              text="My Text"
              duration={5000}
              alertState="success"
              position="left-top"
            />
  }
}

Configuration - Props

PropertyTypeRequireDefaultDescription
alertStatestringtruesucessToast alert state (success, danger, warning, info)
titlestringtrue...Toast alert title
textstringtrue...Toast alert textual message
durationintegerfalse5000Toast alert duration time
positionstringtruecenterToast UI position on the page (center, bottom-right, bottom-left, top-left, top-right)

License

MIT © VolkenoMakers