latest version

Corners

corners-dev option type.

Config

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

DefaultValue

Name Type Default Description
type "grouped", "ungrouped" "grouped" Corner type.
value number 0
Grouped value.
Should be a natural number.
unit "px" | "%" "px" Grouped unit.
topLeft number 0
TopLeft value.
Should be a natural number.
topLeftUnit "px" | "%" "px" TopLeft unit.
topRight number 0
TopRight value.
Should be a natural number.
topRightUnit "px" | "%" "px" TopRight unit.
bottomLeft number 0
BottomLeft value.
Should be a natural number.
bottomLeftUnit "px" | "%" "px" BottomLeft unit.
bottomRight number 0
BottomRight value.
Should be a natural number.
bottomRightUnit "px" | "%" "px" BottomRight unit.

Minimal Usage

{
  id: "border-radius",
  type: "corners-dev"
}

Usage

 {
   id: "border-radius",
   type: "corners-dev",
   config: {
     units: ["px"]
   },
   defaultValue: {
     type: "ungrouped",
     value: 0,
     topLeft: 5,
     topRight: 5,
     bottomRight: 2,
     bottomLeft: 2,
   }
}