2.0.0 • Published 8 months ago
react-ghosta v2.0.0
Features
- 🔩 Easily Customizable
- ⚛️ Reach Features
- 🕊 Lightweight
- ✅ Accessible
Installation
With yarn
yarn add react-ghosta
With NPM
npm install react-ghosta
Getting Started
Add the Ghosta and ghosta.css to your app first. It will take care of rendering all alerts emitted. Now you can trigger ghosta.fire()
from anywhere!
import { GhostaContainer, ghosta } from 'react-ghosta';
import 'react-ghosta/dist/ghosta.css';
const handleShowAlert = () => ghosta.fire({ title: 'Here is your alert.' });
const App = () => {
return (
<div>
<button onClick={handleShowAlert}>Show me an Alert</button>
<GhostaContainer />
</div>
);
};
Documentation
Find the full API reference on official documentation.
TODO
⬜️ Add variant option and bind icon and icon background color to this option
⬜️ Add timer option to close the popup after some time and add showTimerProgressBar option to show progress of timer.
2.0.0
8 months ago
1.3.3
1 year ago
1.3.2
1 year ago
1.3.0
1 year ago
1.2.3
1 year ago
1.2.0
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.2.2
1 year ago
1.2.1
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago