Skip to main content
  1. Docs
  2. Components
  3. 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
methods.tsx
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

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

04

A list

render a <ul> around <li> children: the bullets and indent go, the list role stays.

  • Passkeys
  • Authenticator apps
  • SMS codes
Next — StackUsage