Skip to content

Spacing ​

Spacers and dividers.

spacer ​

Tier: core

Flexible empty space.

spacer (calculator.small)

From showcase preset — case calculator.small.

Properties ​

PropertyTypeDefaultDescription
minLengthnumber—Minimum length along the parent axis (points).

Examples ​

Minimal ​

json
{
  "type": "spacer",
  "minLength": 8
}

From showcase calculator.small ​

json
{
  "type": "spacer"
}

From showcase upcoming-payments.large ​

json
{
  "type": "spacer",
  "minLength": 4
}

Inside a WidgetConfig ​

json
{
  "small": {
    "type": "spacer",
    "minLength": 8
  }
}

divider ​

Tier: core

Horizontal or vertical rule.

divider (calculator.small)

From showcase preset — case calculator.small.

Properties ​

PropertyTypeDefaultDescription
backgroundBackgroundValue—Solid, adaptive, or gradient background.
borderBorderConfig—Border color and width.
clipShapeClipShape—Clip content to a shape (e.g. circle avatar from square image).
colorColorValue—Line color.
cornerRadiusnumber—Corner radius in points.
flexnumber—Layout weight for flexible sizing inside stacks (like Android layout_weight).
frameFrameConfig—Explicit width / height / max constraints.
opacitynumber—Opacity from 0 (invisible) to 1 (opaque).
paddingPaddingValue—Inset padding (number or per-edge object).
shadowShadowConfig—Drop shadow.
thicknessnumber—Line thickness in points.

Examples ​

Minimal ​

json
{
  "type": "divider",
  "thickness": 1,
  "color": "separator"
}

From showcase calculator.small ​

json
{
  "type": "divider",
  "color": "#3a3a3c",
  "thickness": 1
}

From showcase fitness.medium ​

json
{
  "type": "divider",
  "color": "#334155"
}

Inside a WidgetConfig ​

json
{
  "small": {
    "type": "divider",
    "thickness": 1,
    "color": "separator"
  }
}

Released under the MIT License. · Contributing