- Docs
- Components
- Layout
Stack
A vertical flow with a gap from the space scale. The one way to space things above each other.
- Import
- @qeetrix/react
- Status
- StableSince 0.0.2
- Renders
<div>Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Playground
Every prop, live, and the code it takes.
Passkeys
Authenticator apps
SMS codes
Gap
Align
import { Stack } from "@qeetrix/react";
<Stack>
<Method name="Passkeys" />
<Method name="Authenticator apps" />
<Method name="SMS codes" />
</Stack>02
Gaps
gap from the space scale: 0 · 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64px. md, 12px, by default.
sm
Passkeys
Authenticator apps
SMS codes
md
Passkeys
Authenticator apps
SMS codes
xl
Passkeys
Authenticator apps
SMS codes
<Stack gap="sm">…</Stack>
<Stack>…</Stack>
<Stack gap="xl">…</Stack>03
Alignment
align across: stretch by default, or start, center, end.
stretch
Passkeys
Authenticator apps
SMS codes
start
Passkeys
Authenticator apps
SMS codes
center
Passkeys
Authenticator apps
SMS codes
end
Passkeys
Authenticator apps
SMS codes
<Stack align="start">…</Stack>04
A list
render a <ul> around <li> children: the bullets and indent go, the list role stays.
- Passkeys
- Authenticator apps
- SMS codes
<Stack render={<ul />} gap="sm">
<li>Passkeys</li>
<li>Authenticator apps</li>
</Stack>