0.1.6 • Published 4 months ago

react-alert-go v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

react-alert-go

React Accordion

✨ react-alert-go is a beautiful way to show alerts on web applications.

Installation

$ npm install --save react-alert-go

Usage

import React, { useEffect } from 'react';
import { alertGo, AlertGoContainer } from 'react-alert-go';

const Test = () => {
  useEffect(() => {
    alertGo('This is default alert box');
  }, []);
  return (
    <>
      <h1>Testing React Alert Go</h1>
      <AlertGoContainer />
    </>
  );
};

export default Test;

AlertGoContainer API

propstypedefaultdescription
positionstringtop-righttop-left/top-center/top-right/bottom-left/bottom-center/bottom-right
autoClosenumber5000time in mili second

addAlert API

argument no.typedefaultrequireddescription
firststringemptytrueGive a short and concise alert message
secondobject{}falsetype(success/error/warning)

Contribute

Show your ❤️ and support by giving a ⭐. Any suggestions are welcome!.

0.1.6

4 months ago

0.1.4

4 months ago

0.1.5

4 months ago

0.1.0

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.3

4 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.7

4 months ago

0.0.5

4 months ago

0.0.6

4 months ago

0.0.3

4 months ago

0.0.4

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago