Skip to content

Sides

A positional object for properties that can vary per side. Used by padding and strokeWeight as an alternative to a single scalar value. Introduced in schema 1.0.0.

interface Sides {
top?: Style;
end?: Style;
bottom?: Style;
start?: Style;
}

Properties

PropertyTypeRequiredDescription
topStyleNoTop edge
endStyleNoInline-end (right in LTR)
bottomStyleNoBottom edge
startStyleNoInline-start (left in LTR)

Side names use logical directions (start/end) rather than physical (left/right) for bidirectional layout support.

Examples

When all sides are the same, padding is a scalar:

padding: 16

When sides differ, padding is a Sides object:

padding:
top: 8
end: 16
bottom: 8
start: 16

Further Reading