Icons
Every glyph the table renders is a named slot. Override any subset via useDataTable({ icons }) (or app-wide via DataTableConfigProvider) to swap icon libraries or individual icons. Each value is an IconComponent — any component accepting a className.
import { ArrowUp, ArrowDown, MoreVertical } from "lucide-react"
const table = useDataTable({
data,
columns,
icons: {
sortAscending: ArrowUp,
sortDescending: ArrowDown,
columnActions: MoreVertical,
},
})
See the Custom icons guide for swapping the whole set. The complete slot list and Remix Icon defaults:
| Slot | Type | Default | Description |
|---|---|---|---|
sortAscending | IconComponent | RiArrowUpLine | — |
sortDescending | IconComponent | RiArrowDownLine | — |
sortUnsorted | IconComponent | RiExpandUpDownLine | — |
columnActions | IconComponent | RiMore2Line | — |
filter | IconComponent | RiFilterLine | — |
filterOff | IconComponent | RiFilterOffLine | — |
advancedFilter | IconComponent | RiFilter3Line | Advanced filter panel toggle. |
clearAll | IconComponent | RiListCheck | Clear-sort / show-all reset action. |
hide | IconComponent | RiEyeOffLine | — |
pin | IconComponent | RiPushpinLine | — |
pinnedRow | IconComponent | RiPushpinFill | — |
unpin | IconComponent | RiUnpinLine | — |
group | IconComponent | RiGroup2Line | — |
columnVisibility | IconComponent | RiLayoutColumnLine | — |
density | IconComponent | RiLineHeight | — |
fullscreenEnter | IconComponent | RiFullscreenLine | — |
fullscreenExit | IconComponent | RiFullscreenExitLine | — |
search | IconComponent | RiSearchLine | — |
clear | IconComponent | RiCloseLine | — |
pageFirst | IconComponent | RiArrowLeftDoubleLine | — |
pagePrev | IconComponent | RiArrowLeftSLine | — |
pageNext | IconComponent | RiArrowRightSLine | — |
pageLast | IconComponent | RiArrowRightDoubleLine | — |
expanded | IconComponent | RiArrowDownSLine | — |
collapsed | IconComponent | RiArrowRightSLine | — |
dragHandle | IconComponent | RiDraggable | — |
edit | IconComponent | RiPencilLine | — |
save | IconComponent | RiCheckLine | — |
cancel | IconComponent | RiCloseLine | — |
export | IconComponent | RiDownloadLine | — |
fileCsv | IconComponent | RiFileTextLine | — |
fileExcel | IconComponent | RiFileExcel2Line | — |
calendar | IconComponent | RiCalendarLine | — |