@spark-web/container
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @spark-web/container

Weekly Downloads

772

Version

1.1.0

License

none

Unpacked Size

16.1 kB

Total Files

10

Last publish

Collaborators

  • brighte
  • brighte-release-bot