Skip to content

Instantly share code, notes, and snippets.

View iam-doctor-j's full-sized avatar

Jyotirmaya Sahu iam-doctor-j

  • Bhubaneswar, Odisha
View GitHub Profile
@iam-doctor-j
iam-doctor-j / DataTable.tsx
Created February 27, 2021 16:07
DataTable component for React using MaterialUI
import { createStyles, Paper, Table, TableBody, TableContainer, TablePagination, Theme } from '@material-ui/core';
import { makeStyles, TableCell, TableHead, TableRow, TableSortLabel } from '@material-ui/core';
import React from 'react';
interface IDataTableColumn {
id: string
name: string,
enableSort?: boolean,
align?: "center" | "inherit" | "justify" | "left" | "right"
}