Example#
FernlightPebblepath
Usage#
Use a stack to set a column of items apart by one consistent gap from the 4 px space scale. It replaces margins on children, so a component never brings its own outer spacing.
gapis a step of 4 px: 0, 1, 2, 3, 4, 5, 6, 8, 10, 12 or 16.alignandjustifyset the cross and main axis;renderchanges the element, such as aul.- A row that wraps is a
Cluster; columns are aGrid.
Anatomy#
FernlightPebblepath
- StackA flex column; the gap is the only spacing.
.mk-stack
Volume#
Layout only: identical at every volume.
Quiet
FernlightPebblepathStudio
FernlightPebblepathPress
FernlightPebblepathRave
FernlightPebblepath
Content#
- Pick gaps from the scale by relationship: tight for parts of one thing (2 or 3), roomy between things (6 or 8).
Do and don't#
Do
FernlightPebblepathDana Whitfield
Don't
Fernlight
Pebblepath
Dana Whitfield
Pebblepath
Dana Whitfield
Accessibility#
- A layout primitive adds no semantics; pass
renderfor a list (<ul />).
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
gap | SpaceStep | 4 | Default 4 (16 px). |
align | FlexAlign | none | |
justify | FlexJustify | none | |
render | RenderProp | none | |
children | ReactNode | none |
Tokens#
Changelog#
Arrived in 0.1.0.
Sectionwith its plate andArtslot,Plate,VolumeScope,PageHero,SectionHead,Eyebrow,Card,LineCard,InfoPanel,Stack,Cluster,Grid,Container,Main,Ruleand theFittedLineclient fitter;Navbarwith theNavDisclosuremega panels,Footer,FooterMap,BuildStamp,SkipLink,ActionDockandVisitorControls; theTableparts,ComparisonTablewith the one-tier switcher,SpecStrip,Numeral,Stat,StatGroup,StatusChip,BadgeandScoreDial;ProsewithmdxComponents,Quote,CodeBlockwithCopyButton,Figure,ScreenshotFrameandPhoneFrame; and the brand: the three evolved 2 × 2 options inmarkGeometry(a Overprint by default, b Paper seam, c Key block) with the pixel-snappedpxmode and the one-ink seam variant,logoGeometrywith the 1x clear-space frame,Mark,Wordmark,Logo,MaxosMarkandLineBadge. Read the whole entry