hrnet-employee-form
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

// README.md

Modal Component

A customizable React modal component.

Installation

npm i hrnet-employee-form

Usage

import React, { useState } from 'react';
import { Modal } from 'hrnet-employee-form';

const App = () => {
  const [isOpen, setIsOpen] = useState(false);

  return (
    <div>
      <button onClick={() => setIsOpen(true)}>Open Modal</button>
      <Modal isOpen={isOpen} onClose={() => setIsOpen(false)}>
        <p>This is the modal content!</p>
      </Modal>
    </div>
  );
};

export default App;

Props

  • isOpen (boolean): Controls whether the modal is displayed.
  • onClose (function): Callback function to close the modal.
  • children (React.ReactNode): Content to be displayed inside the modal.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i hrnet-employee-form

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

6.9 kB

Total Files

9

Last publish

Collaborators

  • jeanmax1me