Skip to content

Container

The component centers content and constrains its maximum width for optimal readability.

xs: 384px
sm: 720px
md: 1280px
lg: 1440px
xl: 1600px
1980px (max)

The Container component provides base styles (full width and padding). Use the w prop to set maximum width, and Tailwind CSS classes for additional styling.

import { Container } from '@fintech-sandpit/ui/react';
return (
<Container w="md">
Medium-width container
</Container>
);
NameTypeRequiredDefaultDescription
wContainerSizeYesMaximum width of the container
type ContainerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'