1.1.0 • Published 4 months ago

@spark-web/container v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

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

1.1.0

4 months ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.10

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago