1.0.2 • Published 3 years ago

growl-task v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

This package consists of growl notification feature which is auto hidden in every 3 seconds once it is updated

Note: This project is created solely for the purpose of coding interview. PLease do not use this in your live projects.

growl-task v1.0

npm install growl-task

Import the Growl component in your desired react component using follwoing code:

import {Growl} from 'growl-task'

Then, simply use the component with initial state and message to notify.

<Growl active={true} message='Hello World'  />

Options

You can pass options to the Growl component by passing values to below props:

active {type:bool}: sets state of Growl component to show or hide. message {type:string}: sets message of Growl component to display.

Thank you for your time to reviewer of this code.