1.0.3 • Published 9 months ago

hrnet-employee-form v1.0.3

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

// 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

1.0.3

9 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago