File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,14 @@ yarn add react-split-pane
1919```
2020
2121## Example Usage
22- ``` html
22+ ``` jsx
2323 < SplitPane split= " vertical" minSize= {50 } defaultSize= {100 }>
2424 < div>< / div>
2525 < div>< / div>
2626 < / SplitPane>
2727```
2828
29- ``` html
29+ ``` jsx
3030 < SplitPane split= " vertical" minSize= {50 }>
3131 < div>< / div>
3232 < SplitPane split= " horizontal" >
@@ -51,7 +51,7 @@ You can also set the size of the pane using the `size` prop. Note that a size se
5151
5252In this example right pane keeps its width 200px while user is resizing browser window.
5353
54- ``` html
54+ ``` jsx
5555 < SplitPane split= " vertical" defaultSize= {200 } primary= " second" >
5656 < div>< / div>
5757 < div>< / div>
@@ -97,7 +97,7 @@ survive a refresh of your app.
9797For example, if you are comfortable with the trade-offs of localStorage, you
9898could do something like the following:
9999
100- ``` html
100+ ``` jsx
101101 < SplitPane split= " vertical" minSize= {50 }
102102 defaultSize= { parseInt (localStorage .getItem (' splitPos' ), 10 ) }
103103 onChange= { size => localStorage .setItem (' splitPos' , size) }>
You can’t perform that action at this time.
0 commit comments