You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
An incredibly simple modal dialog, because after writing [this post](http://reactjsnews.com/modals-in-react/), I found none of the ones listed let you easily overwrite the css!
@@ -61,8 +63,12 @@ export default class App extends React.Component{
61
63
-`show`: true or false
62
64
-`onClose`: when the modal is sending the close event (only happens is `closeOnOuterClick` is true)
63
65
-`className`: this will allow you to completely change the default css located in the component.
66
+
-`containerStyle`: changes styles on the modal content area
64
67
65
-
Everything else will be merged and you're free to apply any props you want. Minimum required props would be `show`. You can optionally pull in `modalClass` and merge any styles with it and set the style prop on the modal.
68
+
Minimum required props would be `show` and `onClose`. You can optionally pull in `closeStyle` to use the default close button.
66
69
67
-
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.
68
-
Customizing the style is easy, to target the actual content area it will be `.your-class div`.
70
+
###Why this modal?
71
+
72
+
The big difference is that you can use the default style, overwrite just the things you want with the `style` or `containerStyle` props, or throw on a class name and completely style everything yourself.
73
+
74
+
Customizing the style via a css class is easy, to target the actual content area it will be `.your-class div`.
0 commit comments