1.2.2 • Published 6 years ago

react-notifys v1.2.2

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

react-notifys

Notifys is a React component which provides notifications with many configuration possibilities.

Coveralls branch version js-standard-style

Demo

You can see a live demo here.

Installation

To install this Component, run yarn add react-notifys or npm install react-notifys.

Usage

To use the component, In your react Application just do

import React from 'react';
import Notifys from 'react-notifys';

const MyComponent = (props) => <Notifys className="notifys notifys-success fade"><strong>Success!</strong> Indicates a successful or positive action.</Notifys>;

export default MyComponent;

Props

You can pass below props with the default React Notifys.

NameTypeDefaultDescription
classNameStringAlerts are created with the notifys class, followed by one of the four contextual classes notifys-success, notifys-info, notifys-warning or notifys-danger.
onCloseFunctionoptional. Create a callback function when a notifys is closed.

Basic example

Alt text

License

Copyright (c) 2017 Nirmal Fernando

The files included in this repository are licensed under the MIT license.

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago