
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@spark-web/columns
Advanced tools
--- title: Columns storybookPath: page-layout-columns--default isExperimentalPackage: false ---
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>
If you need more control over how your columns are distributed, you can use the
template
prop. template
receives an array of numbers that represent the
relative width of each column.
<Columns gap="small" template={[1, 3, 1]} collapseBelow="tablet">
<Box border="field" padding="small">
<Text>nav</Text>
</Box>
<Box border="field" padding="small">
<Text>main</Text>
</Box>
<Box border="field" padding="small">
<Text>aside</Text>
</Box>
</Columns>
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 ---
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 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.