Skip to content

Spacing

Spacers and dividers.

spacer

Tier: core

Flexible empty space.

spacer (calculator.small)

From showcase preset — case calculator.small.

Properties

PropertyTypeDefaultDescription
minLengthnumberMinimum 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
backgroundBackgroundValueSolid, adaptive, or gradient background.
borderBorderConfigBorder color and width.
clipShapeClipShapeClip content to a shape (e.g. circle avatar from square image).
colorColorValueLine color.
cornerRadiusnumberCorner radius in points.
flexnumberLayout weight for flexible sizing inside stacks (like Android layout_weight).
frameFrameConfigExplicit width / height / max constraints.
opacitynumberOpacity from 0 (invisible) to 1 (opaque).
paddingPaddingValueInset padding (number or per-edge object).
shadowShadowConfigDrop shadow.
thicknessnumberLine 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