@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
19 lines (18 loc) • 1.33 kB
TypeScript
import type { SplitterLayoutPropTypes } from './types.js';
/**
* A layout that contains several content areas. The content that is added to the `SplitterLayout` should be wrapped
* into 0-n `SplitterElement`s which define the size and size constraints of the content area.
* The orientation of the `SplitterLayout` can be set to horizontal (default) or vertical. All content areas of the
* layout will be arranged in that way. In order to split vertically and horizontally at the same time, splitters need
* to be nested.
* By adding or changing `SplitterElement`s to the `SplitterLayout` that make up the content areas, the size can be changed
* programmatically. Additionally, the content areas can be made non-resizable individually and a minimal size (in px)
* can be set.
* The splitter bars are focusable to enable resizing of the content areas via keyboard. The size of the content areas
* can be manipulated when the splitter bar is focused and Left/Down/Right/Up are pressed.
*
* __Note:__ In order to preserve the intended design, at least one `SplitterElement` should have a dynamic `size`.
*/
declare const SplitterLayout: import("react").ForwardRefExoticComponent<SplitterLayoutPropTypes & import("react").RefAttributes<HTMLDivElement>>;
export type { SplitterLayoutPropTypes };
export { SplitterLayout };