@@ -56,26 +56,26 @@ export default Demo;
56
56
57
57
### Available for layout
58
58
59
- Setting ` visiable ={false}` disables the drag bar, which can be used for layout.
59
+ Setting ` visible ={false}` disables the drag bar, which can be used for layout.
60
60
61
61
``` jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
62
62
import React from ' react' ;
63
63
import Split from ' @uiw/react-split' ;
64
64
65
65
const Demo = () => (
66
66
< div>
67
- < Split mode= " vertical" visiable = {false }>
67
+ < Split mode= " vertical" visible = {false }>
68
68
< div style= {{ minHeight: 45 , background: ' #dcdcdc' }}> Header< / div>
69
- < Split visiable = {false }>
69
+ < Split visible = {false }>
70
70
< div style= {{ minWidth: 200 , maxWidth: 200 , minHeight: 120 , background: ' #b5b5b5' }}> Sider< / div>
71
71
< div style= {{ width: ' 100%' , background: ' #ececec' }}> Content< / div>
72
72
< / Split>
73
73
< div style= {{ minHeight: 45 , background: ' #dcdcdc' }}> Footer< / div>
74
74
< / Split>
75
75
< div style= {{ height: 20 }}>< / div>
76
- < Split visiable = {false }>
76
+ < Split visible = {false }>
77
77
< div style= {{ minWidth: 200 , maxWidth: 200 , minHeight: 85 , background: ' #a9a9a9' }}> Sider< / div>
78
- < Split mode= " vertical" visiable = {false } style= {{ width: ' 100%' }}>
78
+ < Split mode= " vertical" visible = {false } style= {{ width: ' 100%' }}>
79
79
< div style= {{ minHeight: 45 , background: ' #dcdcdc' }}> Header< / div>
80
80
< div style= {{ minHeight: 85 , background: ' #b5b5b5' }}> Content< / div>
81
81
< div style= {{ minHeight: 45 , background: ' #dcdcdc' }}> Footer< / div>
@@ -319,6 +319,10 @@ export interface SplitProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
319
319
/** Set the drag and drop toolbar as a line style. */
320
320
lineBar? : boolean ;
321
321
/** Set the dragged toolbar, whether it is visible or not */
322
+ visible? : boolean | number [];
323
+ /**
324
+ * @deprecated Use `visible` instead
325
+ */
322
326
visiable? : boolean | number [];
323
327
/**
324
328
* Set the drag and drop toolbar, disable
0 commit comments