Components
Layout

Layout

Import

import { VKLayout } from "@vivakits/react-components";

Basic Usage

The Layout component provides a flexible container for organizing content with various configuration options.

Header
Content
Footer

Layout Orientation

The Layout component supports different orientation to suit various design requirements. It has horizontal and vertical orientation. By default the orientation is set to vertical.

Example 1

Header
Content
Footer

Example 2

Sidebar
Content

Spacing

Customize the gap between layout items by passing the gap prop. We can pass sm, md, lg, xl. Besides we can also pass any number for specific gap size.

Sidebar
Content

Examples

Examples 1

Navbar
Content
Footer

Examples 2

Sidebar
Navbar
Content

Examples 3

Header
Sider
Content
Footer

API Reference

AttributeTypeDescriptionDefault
orientationverticalhorizontalDefines the layout orientation and behaviorvertical
spacingsmmdlgxlControls the spacing between layout items-