📄 tanstack/table/latest/docs/api/core/cell

File: cell.md | Updated: 11/15/2025

Source: https://tanstack.com/table/latest/docs/api/core/cell



TanStack

Table v8v8

Search...

+ K

Auto

Log In

TanStack StartRC

Docs Examples GitHub Contributors

TanStack Router

Docs Examples GitHub Contributors

TanStack Query

Docs Examples GitHub Contributors

TanStack Table

Docs Examples Github Contributors

TanStack Formnew

Docs Examples Github Contributors

TanStack DBbeta

Docs Github Contributors

TanStack Virtual

Docs Examples Github Contributors

TanStack Paceralpha

Docs Examples Github Contributors

TanStack Storealpha

Docs Examples Github Contributors

TanStack Devtoolsalpha

Docs Github Contributors

More Libraries

Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide

Documentation

Framework

React logo

React

Version

Latest

Search...

+ K

Menu

Getting Started

Core Guides

Feature Guides

Core APIs

Feature APIs

Enterprise

Examples

Framework

React logo

React

Version

Latest

Menu

Getting Started

Core Guides

Feature Guides

Core APIs

Feature APIs

Enterprise

Examples

On this page

Cell APIs

Copy Markdown

These are core options and API properties for all cells. More options and API properties are available for other table features .

Cell API
--------

All cell objects have the following properties:

### id

tsx

id: string


id: string

The unique ID for the cell across the entire table.

### getValue

tsx

getValue: () => any


getValue: () => any

Returns the value for the cell, accessed via the associated column's accessor key or accessor function.

### renderValue

tsx

renderValue: () => any


renderValue: () => any

Renders the value for a cell the same as getValue, but will return the renderFallbackValue if no value is found.

### row

tsx

row: Row<TData>


row: Row<TData>

The associated Row object for the cell.

### column

tsx

column: Column<TData>


column: Column<TData>

The associated Column object for the cell.

### getContext

tsx

getContext: () => {
  table: Table<TData>
  column: Column<TData, TValue>
  row: Row<TData>
  cell: Cell<TData, TValue>
  getValue: <TTValue = TValue,>() => TTValue
  renderValue: <TTValue = TValue,>() => TTValue | null
}


getContext: () => {
  table: Table<TData>
  column: Column<TData, TValue>
  row: Row<TData>
  cell: Cell<TData, TValue>
  getValue: <TTValue = TValue,>() => TTValue
  renderValue: <TTValue = TValue,>() => TTValue | null
}

Returns the rendering context (or props) for cell-based components like cells and aggregated cells. Use these props with your framework's flexRender utility to render these using the template of your choice:

tsx

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


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

Edit on GitHub

Row

Column Filtering

Partners Become a Partner

Code RabbitCode Rabbit CloudflareCloudflare AG GridAG Grid NetlifyNetlify NeonNeon WorkOSWorkOS ClerkClerk ConvexConvex ElectricElectric SentrySentry PrismaPrisma StrapiStrapi UnkeyUnkey

scarf analytics