Input
Decoration and visibility use Decoration & visibility (BlockShell).
Presentational input bound to a document variable id. Pair with root.props.dataRequests and a Button runRequest/runMutation trigger. Control auto-picks from variable type (text/boolean/list) or override with email/tel/textarea/select. Select options come from the variable: type list with options[{id,label}] (not a block-level options prop). An array variable whose item type is text renders as a multi-value text field (add and remove rows) and stores a string array. An empty label renders nothing. The control is named by ariaLabel when that is set; otherwise it has no accessible name. labelHidden clips a non-empty label visually and keeps it for assistive tech. Optional controlStyle { fontSize, lineHeight, paddingX, paddingY, fontFamily, borderWidth, borderRadius, borderColor, background } styles the control. borderColor and background are authored color leaves (
*light,{ theme: "dark" }dark). backgroundColor is the fill used when background is omitted. Width and radius take a theme token (none, sm, md, lg; radius also xl and full) or a px number. Omitted values keep the stylesheet: inherited font, padding 0.5rem 0.75rem, 1px border, and surface background. The shell border paints the block frame, not the control. A compact search box uses an empty label, background transparent, borderWidth 1, borderColor #cbd5e1, borderRadius 6, paddingX 10, and paddingY 8. rows sets the textarea row count and clears the default min-height. A compact contact form uses 14px / 21px, padding 8px / 10px, and a row count near 123px. Consent / terms with a link: place VariableInputBlock (control checkbox) beside a RichTextBlock that holds the linked copy — do not expect a rich-text checkbox label on this block.
Fields
rows
Textarea row count. Omit to keep the default min-height. A compact contact textarea uses a row count near 123px with 21px line height and 10px vertical padding.
rows: [{ if: "*", is: 5 }]controlStyle
Control typography, padding, border, radius, and fill. Every leaf is Authored; omitted leaves keep the stylesheet.
controlStyle: { fontSize: [{ if: "*", is: 14 }], lineHeight: [{ if: "*", is: 21 }], paddingX: [{ if: "*", is: 10 }], paddingY: [{ if: "*", is: 8 }], fontFamily: [{ if: "*", is: "theme-body" }], borderWidth: [{ if: "*", is: 1 }], borderRadius: [{ if: "*", is: 6 }], borderColor: [{ if: "*", is: "#cbd5e1" }], background: [{ if: "*", is: "transparent" }] }labelGap
Space between the label and the control, in pixels. Omit to keep the stylesheet gap.
labelGap: [{ if: "*", is: 8 }]field
variableId
Editor variable id to read/write.
field: {
variableId: "email"
}label
Visible label. An empty string renders no label element. A non-empty label names the control. When the label is empty, ariaLabel is the accessible name.
field: {
label: [{ if: "*", is: "Title" }]
}labelHidden
When true, a non-empty label is clipped visually and kept for assistive tech. The control points at it with aria-labelledby.
field: {
labelHidden: [{ if: "*", is: false }]
}ariaLabel
Accessible name used when the label is empty. Omitted when a visible or screen-reader label already names the control.
field: {
ariaLabel: [{ if: "*", is: "Search" }]
}placeholder
Placeholder text.
field: {
placeholder: [{ if: "*", is: "Search…" }]
}required
HTML required attribute.
field: {
required: [{ if: "*", is: false }]
}control
auto|text|email|tel|textarea|number|checkbox|select — override HTML control. For select, variable must be type list with options[{id,label}].
field: {
control: [{ if: "*", is: "auto" }]
}maxLength
Optional max length for text controls.
field: {
maxLength: [{ if: "*", is: 120 }]
}clampMin
Lower bound for number controls and number variables.
field: {
clampMin: [{ if: "*", is: 0 }]
}clampMax
Upper bound for number controls and number variables.
field: {
clampMax: [{ if: "*", is: 100 }]
}labelStyle
labelFontFamily
Label font family token (theme-body default).
labelStyle: {
labelFontFamily: [{ if: "*", is: "theme-body" }]
}labelFontSize
Label font size in px (default 14).
labelStyle: {
labelFontSize: [{ if: "*", is: 14 }]
}labelColor
Label color. One authored color leaf (* light, { theme: "dark" } dark).
labelStyle: {
labelColor: [{ if: "*", is: "#111827" }]
}Default props
{
"shell": {
"visibility": [
{
"if": "*",
"is": true
}
],
"anchor": {
"anchorId": [
{
"if": "*",
"is": ""
}
],
"anchorKey": [
{
"if": "*",
"is": ""
}
]
},
"pointerEvents": [
{
"if": "*",
"is": "auto"
}
]
},
"field": {
"variableId": "",
"label": [
{
"if": "*",
"is": ""
}
],
"placeholder": [
{
"if": "*",
"is": ""
}
],
"required": [
{
"if": "*",
"is": false
}
],
"control": [
{
"if": "*",
"is": "auto"
}
]
},
"labelStyle": {
"labelFontFamily": [
{
"if": "*",
"is": "theme-body"
}
],
"labelFontSize": [
{
"if": "*",
"is": 14
}
],
"labelColor": [
{
"if": "*",
"is": ""
}
]
}
}