react-touch-modal
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

화면 기록 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

Prop Type Required? Default Value Description
visible boolean Required - 사용여부
onToggle function Required - toggle function
direction left or right or top or bottom Required - drawer 나오는 방향
full boolean Optional false modal full screen
isTouch boolean Optional true touch 여부

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i react-touch-modal

Weekly Downloads

1

Version

1.0.10

License

MIT

Unpacked Size

20.5 kB

Total Files

15

Last publish

Collaborators

  • daehyunshin1994