Skip to main content

Container

Containers are a fundamental building block of Bootstrap that contain, pad, and align your content within a given device or viewport.

import {Container} from '@acrool/react-grid';

<Container>
{/*...ignore some */}
</Container>

Props

Props NameTypeRequiredDefaultDescription
styleCSS.Properties
classNamestring
childrenReactNode
fluidtrue | "sm" | "md" | "lg" | "xl" | "xxl""sm"Allow the Container to fill all of its available horizontal space.
aselementType"div"You can use a custom element for this component

Fluid

sizeNameExtra small
<576px
Small
≥576px
Medium
≥768px
Large
≥992px
X-Large
≥1200px
XX-Large
≥1400px
sm100%540px720px960px1140px1320px
md100%100%720px960px1140px1320px
lg100%100%100%960px1140px1320px
xl100%100%100%100%1140px1320px
xxl100%100%100%100%100%1320px
fluid100%100%100%100%100%100%

You can change setting by gridTheme

Refer

If you want to know more concepts, you can refer directly to Bootstrap 5 Container