popup-library
v1.0.13
Published
popup library
Downloads
22
Readme
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.