@@ -56,26 +56,26 @@ export default Demo;
5656
5757### Available for layout
5858
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.
6060
6161``` jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
6262import React from ' react' ;
6363import Split from ' @uiw/react-split' ;
6464
6565const Demo = () => (
6666 < div>
67- < Split mode= " vertical" visiable = {false }>
67+ < Split mode= " vertical" visible = {false }>
6868 < div style= {{ minHeight: 45 , background: ' #dcdcdc' }}> Header< / div>
69- < Split visiable = {false }>
69+ < Split visible = {false }>
7070 < div style= {{ minWidth: 200 , maxWidth: 200 , minHeight: 120 , background: ' #b5b5b5' }}> Sider< / div>
7171 < div style= {{ width: ' 100%' , background: ' #ececec' }}> Content< / div>
7272 < / Split>
7373 < div style= {{ minHeight: 45 , background: ' #dcdcdc' }}> Footer< / div>
7474 < / Split>
7575 < div style= {{ height: 20 }}>< / div>
76- < Split visiable = {false }>
76+ < Split visible = {false }>
7777 < 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%' }}>
7979 < div style= {{ minHeight: 45 , background: ' #dcdcdc' }}> Header< / div>
8080 < div style= {{ minHeight: 85 , background: ' #b5b5b5' }}> Content< / div>
8181 < div style= {{ minHeight: 45 , background: ' #dcdcdc' }}> Footer< / div>
@@ -319,6 +319,10 @@ export interface SplitProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
319319 /** Set the drag and drop toolbar as a line style. */
320320 lineBar? : boolean ;
321321 /** Set the dragged toolbar, whether it is visible or not */
322+ visible? : boolean | number [];
323+ /**
324+ * @deprecated Use `visible` instead
325+ */
322326 visiable? : boolean | number [];
323327 /**
324328 * Set the drag and drop toolbar, disable
0 commit comments