Use Material Table Icons
React hook to get icons for material table.
Table of Contents
Usage
Install
yarn add @technote-space/use-material-table-icons
or
npm i @technote-space/use-material-table-icons
Use
e.g.
import type {FC} from 'react';
import {memo} from 'react';
import MaterialTable from '@technote-space/material-table';
import useTableIcons from '@technote-space/use-material-table-icons';
const TestTable: FC = memo(() => {
const tableIcons = useTableIcons();
// ...
return <MaterialTable
icons={tableIcons}
// title={title}
// columns={columns}
// data={fetchData}
// ...
/>
});