Need help in the process of creating your own WordPress theme?
corners-dev option type.
| Name | Type | Default | Description |
|---|---|---|---|
| units | "px" | "%" [] |
["px", "%"] |
Specify desired units for corners. |
| Name | Type | Default | Description |
|---|---|---|---|
| type | "grouped", "ungrouped" |
"grouped" |
Corner type. |
| value | number |
0 |
Should be a natural number.
|
| unit | "px" | "%" |
"px" |
Grouped unit. |
| topLeft | number |
0 |
Should be a natural number.
|
| topLeftUnit | "px" | "%" |
"px" |
TopLeft unit. |
| topRight | number |
0 |
Should be a natural number.
|
| topRightUnit | "px" | "%" |
"px" |
TopRight unit. |
| bottomLeft | number |
0 |
Should be a natural number.
|
| bottomLeftUnit | "px" | "%" |
"px" |
BottomLeft unit. |
| bottomRight | number |
0 |
Should be a natural number.
|
| bottomRightUnit | "px" | "%" |
"px" |
BottomRight unit. |
{
id: "border-radius",
type: "corners-dev"
}
{
id: "border-radius",
type: "corners-dev",
config: {
units: ["px"]
},
defaultValue: {
type: "ungrouped",
value: 0,
topLeft: 5,
topRight: 5,
bottomRight: 2,
bottomLeft: 2,
}
}