Container
The component centers content and constrains its maximum width for optimal readability.
1980px
sm: 384px
md: 768px
lg: 1024px
xl: 1280px
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>);<script setup lang="ts">import { Container } from '@fintech-sandpit/ui/vue';</script>
<template> <Container w="md"> Medium container </Container></template>| Name | Type | Required | Default | Description |
|---|---|---|---|---|
w | ContainerSize | Yes | — | Maximum width of the container |
type ContainerSize = 'sm' | 'md' | 'lg' | 'xl'