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)
xs: 384px
sm: 720px
md: 1280px
lg: 1440px
xl: 1600px
1980px (max)
Example
Section titled “Example”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>);<script setup lang="ts">import { Container } from '@fintech-sandpit/ui/vue';</script>
<template> <Container w="md"> Medium-width container </Container></template>| Name | Type | Required | Default | Description |
|---|---|---|---|---|
w | ContainerSize | Yes | — | Maximum width of the container |
type ContainerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'