diff --git a/README.md b/README.md index cd12e7ba..1cc22883 100644 --- a/README.md +++ b/README.md @@ -224,4 +224,3 @@ pass the 'shouldCloseOnOverlayClick' prop with 'false' value. # Demos * http://reactjs.github.io/react-modal/ -* http://reactjs.github.io/react-modal/bootstrap diff --git a/book.json b/book.json new file mode 100644 index 00000000..0d242fbe --- /dev/null +++ b/book.json @@ -0,0 +1,31 @@ +{ + "gitbook": ">=3.2.2", + "title": "react-modal", + "root": "./docs", + "plugins": [ + "codepen", + "edit-link", + "prism", + "-highlight", + "anchorjs", + "github" + ], + "pluginsConfig": { + "codepen": { + "height": 1000, + "defaultTab": "js" + }, + "edit-link": { + "base": "https://github.com/reactjs/react-modal/tree/master/docs", + "label": "Edit This Page" + }, + "prism": { + "css": [ + "prismjs/themes/prism-tomorrow.css" + ] + }, + "github": { + "url": "https://github.com/reactjs/react-modal" + } + } +} diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..6a760a52 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,85 @@ +# react-modal + +> Accessible modal dialog component for React.JS + +We maintain that accessibility is a key component of any modern web application. As such, we have created this modal in such a way that it fulfills the accessibility requirements of the modern web. We seek to keep the focus on accessibility while providing a functional, capable modal component for general use. + +## General Usage + +The following is an example of using react-modal specifying all the possible props and options: + +```js +import ReactModal from 'react-modal'; + +