@ejp/react-modal
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

React Modal

yarn add @ejp/react-modal

A small utility hook to use Axios in your React components, with a simple and familiar API.

USAGE

import Modal from '@ejp/react-modal';

...
function ModalWithText() {
  return (
    <Modal title="Open Modal">
      <p>my awesome content</p>
    </Modal>
  );
}

function ModalWithImage() {
  return (
    <Modal title="Open Image Modal" image>
      <img src="https://placeimg.com/700/700/nature" alt="" />
    </Modal>
  );
}

// TODO

Project was bootstraped with the excellent TSDX framework.

Readme

Keywords

none

Package Sidebar

Install

npm i @ejp/react-modal

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

3.03 kB

Total Files

3

Last publish

Collaborators

  • ejp