diff --git a/README.md b/README.md deleted file mode 100644 index 99b9cdfc..00000000 --- a/README.md +++ /dev/null @@ -1,67 +0,0 @@ -# react-responsive-modal - -[![npm version](https://img.shields.io/npm/v/react-responsive-modal.svg)](https://www.npmjs.com/package/react-responsive-modal) -[![npm downloads per month](https://img.shields.io/npm/dm/react-responsive-modal.svg)](https://www.npmjs.com/package/react-responsive-modal) -[![codecov](https://img.shields.io/codecov/c/github/pradel/react-responsive-modal/master.svg)](https://codecov.io/gh/pradel/react-responsive-modal) - -A simple responsive and accessible react modal. - -- Focus trap inside the modal. -- Centered modals. -- Scrolling modals. -- Multiple modals. -- Accessible modals. -- Easily customizable via props. -- Typescript support -- [Small bundle size](https://bundlephobia.com/result?p=react-responsive-modal) - -## Documentation - -- [Getting started](https://react-responsive-modal.leopradel.com/) - - [Installation](https://react-responsive-modal.leopradel.com/#installation) - - [Usage](https://react-responsive-modal.leopradel.com/#usage) - - [Props](https://react-responsive-modal.leopradel.com/#props) - - [Licence](https://react-responsive-modal.leopradel.com/#license) - -## Installation - -With npm: `npm install react-responsive-modal --save` - -Or with yarn: `yarn add react-responsive-modal` - -## Usage - -[![Edit react-responsive-modal](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/9jxp669j2o) - -```javascript -import React, { useState } from 'react'; -import ReactDOM from 'react-dom'; -import 'react-responsive-modal/styles.css'; -import { Modal } from 'react-responsive-modal'; - -const App = () => { - const [open, setOpen] = useState(false); - - const onOpenModal = () => setOpen(true); - const onCloseModal = () => setOpen(false); - - return ( -
- - -

Simple centered modal

-
-
- ); -}; - -ReactDOM.render(, document.getElementById('app')); -``` - -## Props - -Check the documentation: https://react-responsive-modal.leopradel.com/#props. - -## License - -MIT © [Léo Pradel](https://www.leopradel.com/) diff --git a/README.md b/README.md new file mode 120000 index 00000000..dfd5ce29 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +./react-responsive-modal/README.md \ No newline at end of file diff --git a/react-responsive-modal/README.md b/react-responsive-modal/README.md index 6b513de2..99b9cdfc 100644 --- a/react-responsive-modal/README.md +++ b/react-responsive-modal/README.md @@ -12,6 +12,8 @@ A simple responsive and accessible react modal. - Multiple modals. - Accessible modals. - Easily customizable via props. +- Typescript support +- [Small bundle size](https://bundlephobia.com/result?p=react-responsive-modal) ## Documentation @@ -20,12 +22,6 @@ A simple responsive and accessible react modal. - [Usage](https://react-responsive-modal.leopradel.com/#usage) - [Props](https://react-responsive-modal.leopradel.com/#props) - [Licence](https://react-responsive-modal.leopradel.com/#license) -- [Examples](https://react-responsive-modal.leopradel.com/examples) - - [Centered modal](https://react-responsive-modal.leopradel.com/examples#centered-modal) - - [Multiple modal](https://react-responsive-modal.leopradel.com/examples#multiple-modal) - - [Custom styling](https://react-responsive-modal.leopradel.com/examples#custom-styling) - - [Custom animation](https://react-responsive-modal.leopradel.com/examples#custom-animation) - - [Custom container](https://react-responsive-modal.leopradel.com/examples#custom-container) ## Installation