
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@spark-web/columns
Advanced tools
Use the columns primitive to layout content in configurable columns.
Each child represents a single column. By default that column will span 1 fraction of the total number of children.
<Columns>
  <Placeholder />
  <Placeholder />
  <Placeholder />
</Columns>
The spacing between children can be adjusted using the gap prop.
<Columns gap="large">
  <Placeholder />
  <Placeholder />
  <Placeholder />
</Columns>
Columns can be aligned vertically using the alignY prop.
<Stack gap="medium" dividers>
  <Columns gap="small" alignY="top">
    <Placeholder />
    <Placeholder label="top (default)" height={64} />
    <Placeholder />
  </Columns>
  <Columns gap="small" alignY="center">
    <Placeholder />
    <Placeholder label="center" height={64} />
    <Placeholder />
  </Columns>
  <Columns gap="small" alignY="bottom">
    <Placeholder />
    <Placeholder label="bottom" height={64} />
    <Placeholder />
  </Columns>
  <Columns gap="small" alignY="stretch">
    <Placeholder />
    <Placeholder label="stretch" height={64} />
    <Placeholder />
  </Columns>
</Stack>
Columns can be collapsed into a single vertical stack responsively using the
collapseBelow prop.
<Columns gap="large" collapseBelow="desktop">
  <Placeholder />
  <Placeholder />
  <Placeholder />
</Columns>
| Prop | Type | Default | Description | 
|---|---|---|---|
| alignY? | ResponsiveProp<AlignY> | Vertically align items within the container. | |
| children | React.ReactNode | Children elements to be rendered within the column component representing each column. | |
| collapseBelow? | ResponsiveRangeProps('below') | At which breakpoint, if amy, should the columns collapse. | |
| gap? | Gap | The size of the gap between each column. | |
| template? | number[] | Define the relative width of each column. By default each column is the same width. | 
Box props are also included as Column props and are not
listed here (excluding display, alignItems, gap, flexDirection,
justifyContent and flexWrap).
Extra props are passed into the underlying Box component.
FAQs
--- title: Columns storybookPath: page-layout-columns--default isExperimentalPackage: false ---
The npm package @spark-web/columns receives a total of 535 weekly downloads. As such, @spark-web/columns popularity was classified as not popular.
We found that @spark-web/columns demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.