1.1.0 • Published 1 year ago

@spark-web/container v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year 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

1 year 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