Socket
Socket
Sign inDemoInstall

react-ghosta

Package Overview
Dependencies
11
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-ghosta

React popup alerts. Lightweight, customizable and beautiful by default.


Version published
Weekly downloads
15
decreased by-70%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-ghosta - Try it out

NPM Version Monthly Downloads License

Popup Alerts for React.
Lightweight, customizable and beautiful by default.


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

  1. ⬜️ Add variant option and bind icon and icon background color to this option

  2. ⬜️ Add timer option to close the popup after some time and add showTimerProgressBar option to show progress of timer.

Keywords

FAQs

Last updated on 28 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc