SplitContainer
Usage
import { SplitContainer } from "@olenbetong/synergi-react";
export default function MyComponent() {
return (
<SplitContainer fixedPanel={1} defaultFixedSize={400}>
<Paper className="app-view">This is the first panel</Paper>
<Paper className="app-view">This is the second panel</Paper>
</SplitContainer>
);
}API
export declare type SplitContainerProps = {
className?: string;
panelClassName?: string;
children: React.ReactNode[];
direction?: "horizontal" | "vertical";
fixedPanel?: 1 | 2;
defaultFixedSize?: number;
/**
* When the fixed size is persisted, changing the layoutVersion will force clients
* to reset to the default value.
*/
layoutVersion?: string | number;
/**
* If you set an id, the fixed size will be persisted, and restored after page load
*/
id?: string;
};
export declare function SplitContainer({
className,
children,
direction,
fixedPanel,
panelClassName,
defaultFixedSize,
layoutVersion,
id,
}: SplitContainerProps): JSX.Element;Last updated
Was this helpful?