Skip to content

Customization

ContextAwareComponent<Context> = React.ComponentType<{ context: Context; }>

Used for the custom components that accept the data table context prop.

Type ParameterDefault typeDescription
ContextanyThe type of the context passed to the table.

Component overrides for internal DOM elements of the data table. Each override receives the same props the default <div> would get, plus the table’s context value.

Type ParameterDefault typeDescription
ContextunknownThe type of the context passed to the table.

Override the measured footer rendered for end-of-list loading and error states.


Override the loading overlay rendered above the table body during refreshes.


Override the placeholder rendered while the table is awaiting its first resolved dataset.


Row?: ComponentType<object & RefAttributes<HTMLDivElement> & object>

Section titled “Row?: ComponentType<object & RefAttributes<HTMLDivElement> & object>”

Override the element used for data rows (not group header rows). Must forward ref, style, children, and data attributes to the root element.


Override the sticky column container element (used for both left and right sticky columns, in both row cells and header cells). The data-sticky attribute indicates the side.


StickyHeader?: ComponentType<object & RefAttributes<HTMLDivElement> & object>

Section titled “StickyHeader?: ComponentType<object & RefAttributes<HTMLDivElement> & object>”

Override the sticky header wrapper element. Must forward ref, style, and children to the root element.


Props passed to loading UI component slots.

Type ParameterDefault type
Contextunknown

Context


DataTableLoadingState


RowComponentProps = object & React.RefAttributes<HTMLDivElement>

Props passed to the Row component override. The component must forward ref, style, children, and data attributes to its root element.

React.ReactNode

number

number

string

string

React.CSSProperties


ScrollElementComponent<Context> = React.ComponentType<React.HTMLProps<HTMLDivElement> & object & React.RefAttributes<HTMLDivElement>>

The type of the component that can be used for the scroll element.

Type ParameterDefault typeDescription
ContextanyThe type of the context passed to the list.

Props passed to the StickyColumnContainer component override. Used for both left and right sticky column containers in rows and headers. The data-sticky attribute indicates which side (“left” or “right”).

ReactNode


"left" | "right"


CSSProperties


StickyHeaderComponentProps = object & React.RefAttributes<HTMLDivElement>

Props passed to the StickyHeader component override. The component must forward ref, style, and children to its root element.

React.ReactNode

string

React.CSSProperties