0.1.6 • Published 1 year ago

react-alert-go v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.1.4

1 year ago

0.1.5

1 year ago

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.3

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago