1.1.3 • Published 4 months ago

@team-devmonster/react-modal v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@team-devmonster/react-modal

This is simple react modal. This can use like react-native modal.

author: devmonster

We are always looking for investment or assistance. hompage: https://devmonster.co.kr email: aldegad@devmonster.co.kr

items

Getting started

$ npm install @team-devmonster/react-modal@latest

Examples

Easy. Too Easy.

usage

import React, { useState } from "react";
import { Modal } from "@team-devmonster/react-modal";

export const AnyComponent = ({ visible, onRequestClose }) => {

  const [visible, setVisible] = useState(false);
  
  return (
    <>
      <Button 
        onClick={() => setVisible(true)}
        fill="outline">
        react-modal
      </Button>
      <Modal visible={visible} onRequestClose={() => console.log('on request close')}>
        <Div style={{ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%' }}>
          <P>devmonster's react-modal</P>
          <Button onClick={() => { setVisible(false) }}>close</Button>
        </Div>
      </Modal>
    </>
  )
}

devmonsters modules

for javascript

for react

for react-native

1.1.1

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.0

4 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago