Skip to content

itemSpacing

Item spacing. Scalar when uniform; ItemSpacing object when horizontal and vertical gaps differ.

Type(s)

TypeExample
number16
TokenReference$token: DS.Space.400
$type: dimension
ItemSpacinghorizontal: 16
vertical: 8
nullnull

Supported on

ElementFigma Layer(s)
containerComponent, Frame, Instance, Slot

Only meaningful when layoutMode is not NONE.

Source

FormatFile
TypeScriptpackages/schema/types/Styles.ts
JSON Schemapackages/schema/schema/styles.schema.json

ItemSpacing

PropertyTypeDescription
horizontalStyleHorizontal gap between items
verticalStyleVertical gap between items