Line
Decoration and visibility use Decoration & visibility (BlockShell).
Fields
line
orientation
Layout axis for lines and similar controls.
Options: horizontal, vertical
line: {
orientation: [{ if: "*", is: "horizontal" }]
}length
Unit: px
Length of a line or divider in pixels.
line: {
length: [{ if: "*", is: 120 }]
}thickness
Unit: token
Stroke thickness token for a line or divider.
Options: none, sm, md, lg
line: {
thickness: [{ if: "*", is: "sm" }]
}color
Primary accent or fill color. One authored color leaf: * is light, { theme: "dark" } is dark, and { on } (hover, active, focus, selected) is the interaction.
line: {
color: [{ if: "*", is: "#2563eb" }]
}Default props
{
"shell": {
"visibility": [
{
"if": "*",
"is": true
}
],
"anchor": {
"anchorId": [
{
"if": "*",
"is": ""
}
],
"anchorKey": [
{
"if": "*",
"is": ""
}
]
},
"pointerEvents": [
{
"if": "*",
"is": "auto"
}
]
},
"line": {
"orientation": [
{
"if": "*",
"is": "horizontal"
}
]
}
}