Splitter
Represents the KendoReact Splitter component.
Definition
Package:@progress/kendo-react-layout
Properties Interface:SplitterProps
Syntax:
const App = () => {
return (
<div>
<Splitter
style={{height: 400}}
orientation={'vertical'}
>
<div>Pane 1</div>
<div>Pane 2</div>
<div>Pane 3</div>
</Splitter>
</div>
);
}
Properties
children?
ReactNode
Determines the children nodes.
className?
string
Sets additional classes to the component.
Sets the initial options of the Splitter panes (more information and examples). Can be used for uncontrolled state.
id?
string
Sets the id property of the top div element of the component.
onChange?
(event: SplitterOnChangeEvent) => void
Fires after a Splitter pane is resized or collapsed. Useful for updating the pane options and triggering layout calculations on components which are positioned inside the panes.
orientation?
"vertical" | "horizontal"
Specifies the orientation of the panes within the Splitter (more information and examples). Panes in a horizontal Splitter are placed horizontally. Panes in a vertical Splitter are placed vertically.
'horizontal'
Sets the options of the Splitter panes (more information and examples). Can be used for controlled state.
style?
CSSProperties
Sets additional CSS styles to the component.
References
Represent the ref of the Splitter component.