docs/components/layout/Container

Container

Max-width page wrapper with padding.

import { Container } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
maxW'sm' | 'md' | 'lg' | 'xl' | '2xl' | string'xl' (1200px)Maximum width of the container. Accepts preset sizes or custom CSS value.
pxSpaceToken'lg'Horizontal padding using SpaceToken.
pySpaceTokenVertical padding using SpaceToken
centerbooleantrueWhether to horizontally center the container with auto margins.
classstringAdditional CSS classes
styleJSX.CSSPropertiesInline styles
childrenJSX.ElementContent to render inside the container