modal-theoab
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Modal Components by theo arvin

Getting Started

Install this package:

npm install modal-theoab

Import the Counter component:

import { Modal } from "modal-theoab";

then you need to call the Modal component with two props .

<Modal openModal={openModal} setOpenModal={setOpenModal}/>
  • openModal is a boolean that checks if the modal is open.

  • setOpenModal is a function that modifies the value of openModal to close the Modal directly with a close in the component

Package Sidebar

Install

npm i modal-theoab

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

5.55 kB

Total Files

7

Last publish

Collaborators

  • theoarvin