1.0.13 • Published 6 months ago

popup-library v1.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Popup Library

The Popup Library is a versatile React component for displaying popup windows.

Description

This library provides a customizable and reusable popup component for displaying messages or alerts in React applications.

Installation

To install the package, use npm or yarn:

npm install popup-library

or

yarn add popup-library

Usage

To use the Popup component within your React application: import { Popup } from 'popup-library';

Props

isOpen (required) Controls the visibility of the popup.

title (optional) The title of the popup.

headerIcon (optional) An icon or component to display in the popup header.

content (optional) The content of the popup.

onYes and onNo (optional) Functions to handle the 'Yes' and 'No' button actions.

yesText and noText (optional) Text for the 'Yes' and 'No' buttons.

closePopup (optional) Function to close the popup.

Styling

The provided CSS file contains styles for the popup component. Customize these styles as needed to match your application's design.

1.0.13

6 months ago

1.0.12

6 months ago

1.0.11

6 months ago

1.0.10

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago