Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / themeClassName

Function: themeClassName()

themeClassName(theme?, density?, palette?): string

Defined in: datagrid-react/src/types.ts:331

The modifier classes a theme contributes, as one string.

Composed ONCE per grid and handed to the popup surfaces that render outside the grid's DOM (portals, dialogs, the row editor). Those cannot inherit the class through the cascade, and the tokens are declared on the theme class — so without this they render in the packaged palette while the grid behind them is in another one. It is the same reason dark is forwarded explicitly.

A plain string, deliberately: nothing here is per-row or per-cell work.

Parameters

theme?

GridTheme

density?

GridDensity

palette?

GridPalette

Returns

string