Skip to content

wrapAlignment

How wrapped lines are distributed across the axis they stack on, when the element wraps.

Path

…elements.<element>.styles.wrapAlignment

Elements Supported

component · container · slot

Value

  • "START" (default) — Wrapped lines gather at the leading edge, leaving any remaining space after the last line.
  • "SPACE_BETWEEN" — Remaining space is distributed between wrapped lines.

Platform bindings

Figma

Disposition: bound · Realised by: rule wrapping

CSS

Disposition: bound · Realised by: rule autoLayout

Resolved jointly with

This key does not map on its own. Its rule’s ordered case table is linked above.

wrapping — Figma

autoLayout — CSS

Figma key

Reads from counterAxisAlignContent. See ADR 039 — Wrap Alignment.

Decisions

  • ADR-039 — Replace layoutWrap and counterAxisAlignContent with wrap and wrapAlignment
  • ADR-090 — Container Promotion Sources Opened to Closed-Value Layout Properties
  • ADR-113 — Style defaults belong to the schema

Rules

RuleStatement
DSPEC-44Every property of Styles declares a default, and its value validates against that property’s own schema
DSPEC-45A declared default is a literal, never a TokenReference, PropBinding or Conditional
DSPEC-47Jointly resolved keys are stated as an ordered case table over a declared operand set, not as prose

Source

FormatFile
JSON Schemapackages/schema/schema/styles.schema.json
TypeScriptpackages/schema/types/Styles.ts
Specification§4.1a, §11