@progress/kendo-react-layout
Version:
React Layout components enable you to create a perceptive and intuitive layout of web projects. KendoReact Layout package
44 lines (43 loc) • 1.57 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { StackLayoutProps } from './StackLayoutProps';
import * as React from 'react';
/**
* Represents the Object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom)
* callback of the StackLayout component.
*/
export interface StackLayoutHandle {
/**
* Represents the current element. If no current element is present, `element` is `null`.
*/
element: HTMLDivElement | null;
}
/**
* Represents the [KendoReact StackLayout component](https://www.telerik.com/kendo-react-ui/components/layout/stacklayout).
* Arranges its inner elements horizontally, or vertically in a stack. Nesting stack layouts is supported to build more complex layouts.
*
* @example
* ```jsx
*
* const App = () => {
* return (
* <StackLayout
* orientation="vertical"
* align={{horizontal: 'stretch', vertical: 'stretch'}}
* gap={10}
* >
* <div>Box</div>
* <div>Box</div>
* <div>Box</div>
* <div>Box</div>
* </StackLayout>
* );
* };
* ```
*/
export declare const StackLayout: React.ForwardRefExoticComponent<StackLayoutProps & React.RefAttributes<StackLayoutHandle | null>>;