
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@spark-web/stack
Advanced tools
--- title: Stack storybookPath: page-layout-stack--default isExperimentalPackage: false ---
Used to distribute children vertically, with even spacing between each child.
<Stack gap="large">
<Placeholder />
<Placeholder />
<Placeholder />
</Stack>
The spacing between children can be adjusted using the gap prop.
<Columns gap="xxlarge">
<Stack gap="small">
<Placeholder />
<Placeholder />
<Placeholder />
</Stack>
<Stack gap="medium">
<Placeholder />
<Placeholder />
<Placeholder />
</Stack>
<Stack gap="large">
<Placeholder />
<Placeholder />
<Placeholder />
</Stack>
<Stack gap="xlarge">
<Placeholder />
<Placeholder />
<Placeholder />
</Stack>
</Columns>
Items can be aligned horizontally using the align prop.
<Stack gap="medium" dividers>
<Stack gap="small" align="left">
<Placeholder />
<Placeholder label="left" width={128} />
<Placeholder />
</Stack>
<Stack gap="small" align="center">
<Placeholder />
<Placeholder label="center" width={128} />
<Placeholder />
</Stack>
<Stack gap="small" align="right">
<Placeholder />
<Placeholder label="right" width={128} />
<Placeholder />
</Stack>
</Stack>
Use the dividers property to render a Divider between each
element in the Stack.
<Stack gap="medium" dividers>
<Text>First item</Text>
<Text>Second item</Text>
<Text>Third item</Text>
</Stack>
Nest Stack components to create more complex white space rules.
<Stack gap="xlarge">
<Heading level="4">Heading</Heading>
<Stack gap="small">
<Text>Line 1</Text>
<Text>Line 2</Text>
<Text>Line 3</Text>
</Stack>
<Stack gap="small">
<Text>Line 1</Text>
<Text>Line 2</Text>
<Text>Line 3</Text>
</Stack>
</Stack>
Stack props also include Box props and are not listed here
(excludes display, className, alignItems, flexDirection,
justifyContent and flexWrap).
Extra props are also passed into the underlying Box component.
FAQs
--- title: Stack storybookPath: page-layout-stack--default isExperimentalPackage: false ---
The npm package @spark-web/stack receives a total of 2,149 weekly downloads. As such, @spark-web/stack popularity was classified as popular.
We found that @spark-web/stack 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.