Custom Icons

Replace sort, filter, pagination, expand, and editor icons with the icons prop.

Override icons

Pass an icons object — only the keys you set replace the defaults. Values are framework nodes (JSX, VNodes, components, or DOM/SVG elements).

React TSX
const icons = {
sortUp: <SortUpIcon />,
sortDown: <SortDownIcon />,
filter: <FilterIcon />,
expand: <ExpandIcon />,
headerExpand: <HeaderExpandIcon />,
headerCollapse: <HeaderCollapseIcon />,
prev: <PrevIcon />,
next: <NextIcon />,
drag: <DragIcon />,
pinnedLeftIcon: <PinLeftIcon />,
pinnedRightIcon: <PinRightIcon />,
};
<SimpleTable
icons={icons}
columns={columns}
rows={rows}
/>

Example

Sort and paginate to see the custom icons. Code or StackBlitz has the full example.

Props

Icons Configuration

PropertyRequiredDescriptionExample
icons
IconsConfig
Optional
Partial icon map. Unset keys keep the built-in icons.
icons.sortUp
IconElement
Optional
Ascending sort indicator in column headers.
icons.sortDown
IconElement
Optional
Descending sort indicator in column headers.
icons.filter
IconElement
Optional
Column filter button.
icons.expand
IconElement
Optional
Collapsed row-group expand control.
icons.headerExpand
IconElement
Optional
Collapsed nested column header.
icons.headerCollapse
IconElement
Optional
Expanded nested column header.
icons.prev
IconElement
Optional
Pagination previous button.
icons.next
IconElement
Optional
Pagination next button.
icons.drag
IconElement
Optional
Column editor drag handle.
icons.pinnedLeftIcon
IconElement
Optional
Column editor pin-left control.
icons.pinnedRightIcon
IconElement
Optional
Column editor pin-right control.