This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
DanilAndreev edited this page Jul 28, 2020
·
5 revisions
MuiTableFlexible is available as an npm package.
To install and save in your package.json
dependencies, run:
// with npm
npm install @danilandreev/mui-table-flexible
// with yarn
yarn add @danilandreev/mui-table-flexible
You can use MuiTableFlexible with Material-UI, the world's most popular React UI framework.
// with npm npm install @material-ui/core // with yarn yarn add @material-ui/core
More about Material-UI installation
Here's a quick example to get you started, it's literally all you need:
import React from "react";
import {
FlexibleTable,
FlexibleTableCell,
FlexibleTableRow
} from "@danilandreev/mui-table-flexible";
export default function FlexibleTableExample() {
const columns = [
<FlexibleTableCell name={'hello'} key={'table-col-hello'}>Hello</FlexibleTableCell>,
// ...
];
return (
<FlexibleTable
columns={columns}
>
<FlexibleTableRow>
<FlexibleTableCell name={'hello'}>I've</FlexibleTableCell>
{/*...*/}
</FlexibleTableRow>
<FlexibleTableRow>
<FlexibleTableCell name={'hello'}>Because</FlexibleTableCell>
{/*...*/}
</FlexibleTableRow>
<FlexibleTableRow>
<FlexibleTableCell name={'hello'}>Left</FlexibleTableCell>
{/*...*/}
</FlexibleTableRow>
</FlexibleTable>
);
}
You can learn more reading documentation.
Example project available on this page.
- Demos
- Component API