# KendoReact StackLayout Overview

The KendoReact StackLayout component allows you to easily align vertically or horizontally multiple elements in a stack.

It delivers different orientations, alignments, spacings and other handy options.

<CtaPanelOverview></CtaPanelOverview>

The following example demonstrates the StackLayout component in action and also showcases other KendoReact components—the [ButtonGroup](https://www.telerik.com/kendo-react-ui/components/buttons/buttongroup), [Avatars](https://www.telerik.com/kendo-react-ui/components/layout/avatar) and [Cards](https://www.telerik.com/kendo-react-ui/components/layout/card) components. The components are arranged in a stack and can be switched from horizontal to vertical orientation.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/stacklayout/overview/func/source.txt)

> The StackLayout is part of the [KendoReact Layout](https://www.telerik.com/kendo-react-ui/components/layout) component library. The procedures for installing, importing, and using all components in the library are identical. To learn how to use the StackLayout and the rest of the components in the package, see the [Getting Started with the KendoReact Layout Package](https://www.telerik.com/kendo-react-ui/components/layout/get-started) guide.

## Key Features

* [Orientation](https://www.telerik.com/kendo-react-ui/components/layout/stacklayout/layout#orientation)—The orientation configuration option allows you to choose between the vertical and horizontal positioning.
* [Gaps](https://www.telerik.com/kendo-react-ui/components/layout/stacklayout/layout#gaps)—The Gap property allows you to set gaps between the boxes.
* [Horizontal alignment](https://www.telerik.com/kendo-react-ui/components/layout/stacklayout/layout#horizontal-alignment)—You can align the StackLayout horizontally.
* [Vertical alignment](https://www.telerik.com/kendo-react-ui/components/layout/stacklayout/layout#vertical-alignment)—You can align the StackLayout vertically.
* [Nested StackLayouts](https://www.telerik.com/kendo-react-ui/components/layout/stacklayout/layout#nested-stacklayouts)—You can create complex layouts with nested boxes.

## Suggested Links

* [Getting Started with the KendoReact Layout Package](https://www.telerik.com/kendo-react-ui/components/layout/get-started)
* [API Reference of the StackLayout](https://www.telerik.com/kendo-react-ui/components/layout/api/stacklayout)
* [API Reference of the StackLayoutProps](https://www.telerik.com/kendo-react-ui/components/layout/api/stacklayoutprops)
