latest version

Margin

margin-dev option type.

Config

Name Type Default Description
units "px", "%" [] ["px", "%"] Specify desired units for margin.
edges "all", "vertical", "horizontal" all Specify what margin edges should be editable

DefaultValue

Name Type Default Description
type "grouped", "ungrouped" "grouped" Margin type.
value number 0 Grouped value.
unit "px", "%" "px" Grouped unit.
top number 0 Top value.
topUnit "px", "%" "px" Top unit.
right number 0 Right value.
rightUnit "px", "%" "px" Right unit.
bottom number 0 Bottom value.
bottomUnit "px", "%" "px" Bottom unit.
left number 0 Left value.
leftUnit "px", "%" "px" Left unit.

Minimal Usage

{
  id: "margin",
  type: "margin-dev"
}

Usage

 {
   id: "margin",
   type: "margin-dev",
   config: {
     units: ["px"],
     edges: "vertical",
   },
   defaultValue: {
     type: "ungrouped",
     top: 5,
     topUnit: "px",
     right: 1,
     rightUnit: "%",
     bottom: 5,
     bottomUnit: "px",
     left: 1,
     leftUnit: "%",
   }
}