Skip to main content

spacing

A four-direction spacing control with top, right, bottom, and left values. Use it for setting padding or margin on widget sections.

Properties

PropertyTypeRequiredDescription
type"spacing"YesField type identifier
labelstringYesLabel shown in the builder
defaultobjectNoDefault { top, right, bottom, left } values

Usage

{
"padding": {
"type": "spacing",
"label": "Section Padding",
"default": {
"top": 0,
"right": 0,
"bottom": 0,
"left": 0
}
}
}
tip

Values are in pixels. You can use them directly in inline styles or map them to CSS classes.

Interactive Preview

Interactive Preview
top
left
content
right
bottom
Live Output
{
  "padding": {
    "top": 20,
    "right": 16,
    "bottom": 20,
    "left": 16
  }
}