DocsLayout

Layout

When building UIs you should always strive for responsive layouts to enable your pages to adapt to different screen sizes and orientations, ensuring overall consistency across platforms and environments.

While responsive design is a best practice, not all applications need to support every viewport size. Consider your users and use cases—target the screen sizes that make sense for your specific product or context.

Breakpoints

All layout components in the UI Kit rely on breakpoints—specific screen widths where the layout adjusts to better fit the available space and maintain usability across different devices. When the screen width crosses a breakpoint, the layout automatically adapts to ensure content remains accessible and well-structured.

BreakpointWidth (px)Gutters (px)Columns
xs0164
sm600168
md9603212
lg12703212
xl19203212

Layout Components

The UI Kit provides a set of components to help you create responsive layouts. The Container and Grid components use the predefined breakpoints. In contrast, SimpleGrid gives you the flexibility to define custom breakpoints based on your layout needs.

Container

The HvContainer is one of the most basic layout components we provide to our community, and it enables you to center content horizontally on the page.

This component is ideal when your content should stay within a specific width. Use the maxWidth prop to define the breakpoint that sets this limit. The layout will automatically adjust to the screen size but will never grow beyond the specified maximum width.

Details

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti quasi sed perferendis optio eos excepturi possimus atque aperiam impedit expedita dolores, est nulla, aut iure, deleniti recusandae corporis eaque provident?

Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit culpa error vitae fugit minima. Distinctio tempore ipsa voluptatum, vel alias possimus aut, itaque corrupti nesciunt accusantium commodi nulla minima voluptates.

Grid

The HvGrid component lets you build responsive grid layouts with a customizable number of columns. Grid items automatically adapt to different screen sizes.

By default, the grid uses a 12-column layout. You can customize this using the columns prop—set it to a specific number for a fixed column count, or use auto to apply responsive behavior based on the default breakpoints. Grid items can also span across multiple columns, allowing you to build flexible and adaptive layouts to fit your design needs.

Dashboard

KPI 1

50

%

KPI 2

67

%

KPI 3

75

%

KPI 4

80

%

Simple Grid

The HvSimpleGrid component is a simplified alternative to HvGrid, perfect for responsive layouts where each item takes up equal space and adapts to screen size changes. Use it when you need a uniform grid with a fixed number of equally sized columns.

Unlike HvGrid, it doesn’t rely on default breakpoints. Instead, you can define custom breakpoints, column counts, and spacing. It doesn’t support column spans—each item always takes up one column—making it ideal for simpler, evenly spaced layouts.

Card 0

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Card 1

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Card 2

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Card 3

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Card 4

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Card 5

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Card 6

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Card 7

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Card 8

Lorem ipsum dolor sit amet consectetur adipisicing elit.