Skip to content
RefineUI

Container

Centered page shell with token padding and full max width.

Container centers content horizontally with optional spacing-token padding. Use it as a page or section shell.

Full width, padded
Centered column

Overview

Machine-readable contract from Component Spec.

component: containerexport: Containerversion: 1attributes: data-refineui=container

Anatomy

Partdata-refineui
rootcontainer

Layout

PropertyValue
directionlogical
rtltrue
npm install @refineui/react @refineui/tokens
import { Container, Stack, Text } from "@refineui/react";
<Container padding="sizeXXLarge">
<Stack gap="sizeLarge">
<Text variant="headingMd" as="h1">Page title</Text>
<Text variant="bodyMd">Body</Text>
</Stack>
</Container>
PropDefaultTypeDescription
as"div"ElementTypeRoot element.
paddingSpacing tokenPadding on all sides.