OptionalcolorThe app (chrome / header) color scheme — selects the header/app surface mode. 'auto' follows the
page: a dark/light class on <html>/<body>, else the OS.
OptionaleditableThe app-created editor for the always-mounted cell editor. When provided, the grid edits through this shared IEditable; pass the SAME instance to the formula bar for free two-way sync. A stable reference. If omitted, a standalone WorksheetElement makes its own.
OptionalgridThe grid-body color scheme (stays light in a dark app when Enable Dark Grid is off) — drives the grid
darkMode rendering intent and the grid surface mode. 'auto' follows the page as
colorScheme does.
OptionallayersRender element(s) directly onto the GridSurface, bottom → top — the same LayerNode the
grid takes for its children (a node or an array of them). Each layer reads its pane from context
(useGridPane); for a layer that must be built from the pane, call it in a small wrapper.
OptionalonFired when a right-button drag of the fill handle is released — Excel's fill menu. Show a menu
at location whose entries run menu (see CommandContext.FillMenu). Omit to leave the
right-drag inert.
OptionalonCalled once when the sheet has been loaded but before it is rendered.
OptionalonCalled with the sheet once WorksheetElementProps.sheet resolves, and again whenever a new
input resolves to a different one. Until the first input resolves, or if an input fails, the
sheet is null.
OptionalonFire when a contentMenu is requested
OptionalonFired when the view port changes. This is in pixel coordinates and slightly different then viewable cells because off screen location bounds could change
OptionalpropsAllow for custom rendering of cell props.
OptionalpropsProperties for the column headers
OptionalpropsCustomize the grid.
OptionalpropsThe hyperlink card's options — e.g. preview to show a picture of the linked page.
OptionalpropsProps for the outline: the gutters that show row and column groups, and their level buttons.
OptionalpropsProperties for the row headers
OptionalpropsAllow for customizations of scrollbar
OptionalpropsProps passed to the loading panel.
OptionalrefRef to the sheet element.
OptionalrenderRenders the tip beside a hovered cell that carries an error, a warning, a reference cycle or a
failed validation. Omit for the plain default tip; null for none.
OptionalrenderRenders the card of a threaded comment beside its cell: on hover, on selection, and as a draft when a command asks for one. The default shows no card; the indicators are drawn either way.
OptionalrenderRenders the card beside a hovered hyperlink cell: its address, copy, edit and remove. Omit for the
plain default card; null for none.
OptionalrenderRender a movable element (a chart, shape or picture).
OptionalrenderRenders the toolbar that floats at a hovered pivot table's top-right corner: a quick action and a
dropdown of the pivot table's commands. Omit for the plain default split button; null for none.
OptionalrenderCustom error panel, shown when a Promise WorksheetElementProps.sheet fails to resolve.
Defaults to a minimal message.
OptionalrenderCustom loading panel, shown while a Promise WorksheetElementProps.sheet resolves or the
text engine loads. Defaults to a spinner.
OptionalrenderRenders the toolbar that floats at a hovered table's top-right corner: a quick action and a
dropdown of the table's commands. Omit for the plain default split button; null for none.
OptionalrenderRenders the alert a refused or questioned entry raises in the prompt's place. Spread floatProps
on the returned element. Omit for the plain default card; null for none.
OptionalrenderRenders the input prompt of a data validation under the selected cell. Spread floatProps on
the returned element. Omit for the plain default box: the title in bold over the message; null
for none.
The sheet to render, or a Promise for one. The element is empty until the sheet resolves and
its text can be measured; a later input keeps the current sheet showing until it resolves.
OptionalshowShow hover tooltips on cells that carry calc errors / warnings.
OptionalshowMark the cells that are in a circular reference (a corner glyph on each cycle member).
OptionalshowShow the column headers
OptionalshowShow the row headers
OptionalshowShow the scrollbars
OptionaltokensToken values for this sheet, per mode and surface: the React form of a stylesheet in
@layer sxl-overrides, scoped to this instance. Same shape as the workbook's tokens; inside a
workbook, set them there instead.
OptionalviewportShare a scroll Viewport. Pass one to own/drive the sheet's scroll externally —
e.g. WorkbookElement creates it and also hands it to its ScrollPane so they share one store (no
Viewport-data round-trip). The sheet drives the main grid from it and hands it to its headers
(each composes its own per-axis follower). When omitted, the sheet creates its own.
OptionalviewportFixed component that is layered within the viewport.
Props for the WorksheetElement component.