Skip to content

Commit dfcebb4

Browse files
committed
updated readme
1 parent 362cb67 commit dfcebb4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ export default class App extends React.Component{
3636
}
3737
~~~
3838

39+
###props
40+
41+
`closeOnOuterClick`: If somone clicks outside of the modal when it's in focus, should it close? You choose.
42+
Everything else will be merged and you're free to apply any props you want.
43+
3944
You have the option to call `this.refs.modal.show()` and `hide()` similar to other modals out there in react.
4045
The big difference is that you can require the css from 'simple-react-modal/dist/modal' and easily add other classes that make it look however you like.
4146
Customizing the style is easy, to target the actual content area it will be `.your-class div`.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "simplereact--modal",
2+
"name": "simple-react-modal",
33
"description": "The simplest modal",
44
"version": "0.0.1",
55
"main": "./build/simple-modal.js",

0 commit comments

Comments
 (0)