itemSpacing
Item spacing. Scalar when uniform; ItemSpacing object when horizontal and vertical gaps differ.
Type(s)
| Type | Example |
|---|---|
number | 16 |
TokenReference | $token: DS.Space.400$type: dimension |
ItemSpacing | horizontal: 16vertical: 8 |
null | null |
Supported on
| Element | Figma Layer(s) |
|---|---|
container | Component, Frame, Instance, Slot |
Only meaningful when layoutMode is not NONE.
Source
| Format | File |
|---|---|
| TypeScript | packages/schema/types/Styles.ts |
| JSON Schema | packages/schema/schema/styles.schema.json |
ItemSpacing
| Property | Type | Description |
|---|---|---|
horizontal | Style | Horizontal gap between items |
vertical | Style | Vertical gap between items |