0.1.0 • Published 6 years ago

noti-react v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Noti-react

npm version dependencies npm npm bundle size (minified)

Simple notification component for React with support for Typescript!

demo

Install

  1. Use npm
npm install noti-react
  1. Use yarn
yarn add noti-react

Notification

propertypropTyperequireddefaultdescription
typestring ('error', 'info', 'success', 'warn')-'info'Deside which type of notification do you want to use!
labelstringyes-Text which you want to display
autoHidebool-trueAuto hide notification
animationTimenumber-500Time of animation duration in miliseconds
positionstring ('top-left', 'top-right', 'bottom-left', 'bottom-right')-'bottom-right'Position in which corner do you want to display notification
hideTimenumber-5000After this time notification will close if autoHide props is true
customColorstring (rgb string like '#000000')--Add your custom color
classNamestring--Customize style by adding custom class

Example

  1. Import notification component
import { Notification } from 'noti-react';
  1. Use it in your component
<Notification
    label="Example of notification"
/>

Tests

Run tests

npm test
0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago