Skip to main content

Margins

Element type: Dictionary

The Margins key allows a component to add some space from its edges. Note that the border, if any is set, will be drawn after the given space.

Keys

NameTypeRequired
TopNumber
BottomNumber
RightNumber
LeftNumber

Detail

Top

Type: Number
Explanation: Top margin. Space to add between the component and another element above.

Bottom

Type: Number
Explanation: Bottom margin. Space to add between the component and another element below.

Type: Number
Explanation: Top margin. Space to add between the component and another element on the right.

Left

Type: Number
Explanation: Left margin. Space to add between the component and another element on the left.