5.0.0 • Published 6 months ago
@spark-web/container v5.0.0
title: Container storybookPath: page-layout-container--default
isExperimentalPackage: false
The container centers and constrains the maximum width of the content it wraps.
<Container size="small">
<Placeholder height={64} />
</Container>
Examples
Size
Use the size
prop to adjust the maximum width of the container.
<Stack gap="large">
<Container size="xsmall">
<Placeholder label="xsmall" height={64} />
</Container>
<Container size="small">
<Placeholder label="small" height={64} />
</Container>
<Container size="medium">
<Placeholder label="medium" height={64} />
</Container>
<Container size="large">
<Placeholder label="large" height={64} />
</Container>
</Stack>
Props
2.0.0-rc.19
8 months ago
2.0.0-rc.2
8 months ago
2.0.0-rc.3
8 months ago
2.0.0-rc.17
8 months ago
2.0.0-rc.4
8 months ago
2.0.0-rc.18
8 months ago
2.0.0-rc.5
8 months ago
2.0.0-rc.15
8 months ago
2.0.0-rc.16
8 months ago
5.0.0
6 months ago
2.0.0-rc.13
8 months ago
2.0.0-rc.0
8 months ago
2.0.0-rc.14
8 months ago
2.0.0-rc.1
8 months ago
2.0.0-rc.11
8 months ago
2.0.0-rc.12
8 months ago
5.0.0-rc.24
6 months ago
2.0.0-rc.10
8 months ago
5.0.0-rc.25
6 months ago
5.0.0-rc.26
6 months ago
5.0.0-rc.27
6 months ago
5.0.0-rc.28
6 months ago
5.0.0-rc.29
6 months ago
2.0.0-rc.6
8 months ago
2.0.0-rc.7
8 months ago
2.0.0-rc.8
8 months ago
2.0.0-rc.9
8 months ago
5.0.0-rc.31
6 months ago
2.0.0-rc.20
7 months ago
2.0.0-rc.21
7 months ago
1.1.0
2 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.10
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago