TanStack
Table API Reference

flexRender

Function: flexRender()

ts
function flexRender<TProps>(Comp, props): LitRenderable;

Defined in: packages/lit-table/src/flexRender.ts:37

Renders a Lit table template value with the provided context props.

Use this lower-level helper for custom header, cell, or footer renderers when you already have the render function and context. FlexRender is the convenience wrapper for table cell/header/footer objects.

Type Parameters

TProps

TProps

Parameters

Comp

LitRenderable | (props) => LitRenderable

props

TProps

Returns

LitRenderable

Example

ts
flexRender(cell.column.columnDef.cell, cell.getContext())