OptionalalignmentHorizontal anchor used when the editor grows past its cell (Excel-style overflow). Overrides the default, which follows the edited cell's rendered alignment (formulas always grow to the right).
OptionalalignRender an aligned border of this many DEVICE px instead of a fill. The edges are placed on
the boundary centerline (edgeCenter, leading straddles / trailing grows outward) — the same
rule as gridlines and RectangleSVG — so the border lines up with the selection rectangle
exactly. The box is border-box; set the color via style.borderColor.
OptionalboundsOptionalclipView-pixel slack for the off-screen cull. A negative value extends outside the viewport, keeping a just-off-screen box visible.
OptionalcoverExtend the right/bottom edges by 1 device px so the box covers all four of its
gridline pixels (a gridline paints the boundary PIXEL [B, B+1]). Adjacent boxes
then overlap by 1px at the shared boundary — intended, like Excel cell fills.
OptionaldarkThe grid's light/dark intent — drives the box background resolution (resolveCellBackground, which
bakes a concrete color). The input's own font/token colors are theme-adaptive (light-dark()) and need
no flag.
OptionaldisableSkip device-pixel edge alignment. By default the box edges are snapped to the device grid (so content stays crisp and adjacent boxes sharing an edge resolve to the same pixel — no seam). Turn off for a raw, unaligned box.
The editable (UI model) — anchor + the single current edit. Shared with peers (the formula bar).
OptionalfillOptionalkeepKeep the element mounted (positioned off-screen) instead of culling to null when off-screen.
For always-mounted content such as the cell editor, whose input must never unmount.
OptionalrangeThe sheet — its selection drives the input's leave-key nav, its active cell the edit-session commands.
OptionalzStacking override, read by the grid's sorter off this element when the editor is a grid child (law 1: z belongs to Layers; the editor's Layer takes its slot from the sorted order).
Props for SheetCellEditorLayer.
Type Param: C
clean value type.
Type Param: D
dirty value type.
Type Param: A
commit args.