1.0.10 • Published 2 years ago

react-touch-modal v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

화면 기록 2022-01-21 오후 10 20 59

Getting Started

You can install the module via npm or yarn:

npm install react-touch-modal --save

Description

touch drawer

Basic Usage

import React from "react";
import Drawer from "react-touch-modal";

const Example = () => {
  const [isVisible, setIsVisible] = useState(false);
  return (
    <Drawer direction={"right"} visible={isVisible} onToggle={() => setIsVisible(prev=>!prev)}>
      TEST
    </Drawer>,
  )
}

Props

PropTypeRequired?Default ValueDescription
visiblebooleanRequired-사용여부
onTogglefunctionRequired-toggle function
directionleft or right or top or bottomRequired-drawer 나오는 방향
fullbooleanOptionalfalsemodal full screen
isTouchbooleanOptionaltruetouch 여부

License

MIT

1.0.2

2 years ago

1.0.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.10

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago