Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

borderSchema

const borderSchema: object

Defined in: packages/node-border/src/types.ts:29

Schema for the border layer.

Each border in the array specifies:

  • size: Border thickness (number or attribute reference)
  • color: Border color (CSS color or attribute reference)
  • mode: How to interpret size (“relative” = fraction of shape, “pixels” = screen pixels)
  • fill: If true, this border fills remaining space (size is ignored)

Type Declaration

borders

readonly borders: ArrayPropertySchema<{ color: PropertySchema<string, "color", true>; fill: PropertySchema<boolean, "boolean", false>; mode: PropertySchema<"relative" | "pixels", EnumPropertyType<"relative" | "pixels">, boolean>; size: PropertySchema<number, "number", true>; }>