latest version

Padding

padding-dev option type.

Config

Name Type Default Description
units "px", "%" [] ["px", "%"] Specify desired units for padding.

DefaultValue

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

Minimal Usage

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

Usage

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