documentation/docs/packages/tanstack-table/introduction/index.md
import BaseHeadlessTable from "../examples/headless"; import BaseMantineTable from "../examples/mantine"; import BaseChakraUiTable from "../examples/chakra-ui";
Refine provides an integration package for TanStack Table library. This package enables you to manage your tables in a headless manner. This adapter supports all of the features of both TanStack Table and Refine's useTable hook (sorting, filtering pagination etc). Simply, you can use any of the TanStack Table examples as-is by copying and pasting them into your project.
Install the @refinedev/react-table library.
Let's see how to display a table with useTable hook.
We provide implementation examples for the Mantine and Chakra UI. If you using a different ui library, you can use the headless example as a starting point.
<Tabs wrapContent={false}> <TabItem value="headless" label="Headless"> <BaseHeadlessTable /> </TabItem><TabItem value="mantine" label={(<span><span className="block">Mantine</span><small className="block">TanStack Table</small></span>)}>
<BaseMantineTable /> </TabItem><TabItem value="chakra-ui" label={(<span><span className="block">Chakra UI</span><small className="block">TanStack Table</small></span>)}>
<BaseChakraUiTable /> </TabItem> </Tabs>