Skip to content

Container

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

1980px
sm: 384px
md: 768px
lg: 1024px
xl: 1280px

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 container
</Container>
);
NameTypeRequiredDefaultDescription
wContainerSizeYesMaximum width of the container
type ContainerSize = 'sm' | 'md' | 'lg' | 'xl'