1.1.0 • Published 4 years ago

@reactui2020/notification-bar v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

notifyme

A notification library for different types

NPM JavaScript Style Guide

Install

npm install --save @reactui2020/notification-bar

Usage

import React, { Component } from 'react'
//required to import

import {Notification} from '@reactui2020/notification-bar
import '@reactui2020/notification-bar/dist/index.css'


class Example extends Component {
var object={
  title:"hello nbsu",
  type:"Success",
  time:"8000",
  message: 'This is a notification',
}

  render() {
    return <Notification {...dataObject} />
  }
}

DataType

/-----------------------------------------------------------------------------------------------------------\
|                     |                                                 |                                   |
|     Prop Name       |                     Use                         |               Type                |
|_____________________|_________________________________________________|___________________________________|
| title               |   Add title to notification bar                 |  string , no , function           |
| message *           |   Define the message info(required)             |  string , no , function           |
| type    *           |   type of notification(required)                |  success, info , error , warning  |         |
| time                |   at which time it automatically disapears      |  hex, rbga , rbg , name           |
| ondismiss           |   Write a function when to dismiss (function)   |  function                         |
| borderRadius        |   Provide border radius to button  (in px)      |  numeric value                    |
\-----------------------------------------------------------------------------------------------------------/

License

MIT © nitesh9001