--- title: Overview page_title: 'React StackLayout Component & Overview | KendoReact UI' description: 'Discover the StackLayout UI Component by KendoReact and learn how to use it in React projects.' components: ["stacklayout"] slug: overview_stacklayout position: 1 --- # 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. The following example demonstrates the StackLayout component in action and also showcases other KendoReact components—the [ButtonGroup]({% slug overview_buttongroup %}), [Avatars]({% slug overview_avatar %}) and [Cards]({% slug overview_card %}) components. The components are arranged in a stack and can be switched from horizontal to vertical orientation. {% meta height:780 %} {% embed_file stacklayout/overview/func/app.tsx preview %} {% embed_file stacklayout/overview/func/main.tsx %} {% embed_file stacklayout/overview/func/styles.css %} {% endmeta %} > The StackLayout is part of the [KendoReact Layout]({% slug overview_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]({% slug getstarted_layout %}) guide. ## Key Features - [Orientation]({% slug layout_stacklayout %}#toc-orientation)—The orientation configuration option allows you to choose between the vertical and horizontal positioning. - [Gaps]({% slug layout_stacklayout %}#toc-gaps)—The Gap property allows you to set gaps between the boxes. - [Horizontal alignment]({% slug layout_stacklayout %}#toc-horizontal-alignment)—You can align the StackLayout horizontally. - [Vertical alignment]({% slug layout_stacklayout %}#toc-vertical-alignment)—You can align the StackLayout vertically. - [Nested StackLayouts]({% slug layout_stacklayout %}#toc-nested-stacklayouts)—You can create complex layouts with nested boxes. ## Suggested Links - [Getting Started with the KendoReact Layout Package]({% slug getstarted_layout %}) - [API Reference of the StackLayout]({% slug api_layout_stacklayout %}) - [API Reference of the StackLayoutProps]({% slug api_layout_stacklayoutprops %})