@technote-space/use-material-table-icons

React hook to get icons for material table.


Keywords
github, github actions
License
MIT
Install
npm install @technote-space/use-material-table-icons@0.1.18

Documentation

Use Material Table Icons

npm version CI Status codecov CodeFactor License: MIT

React hook to get icons for material table.

Table of Contents

Details

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}
    // ...
  />
});

Author

GitHub (Technote)
Blog