@rabahzeineddine/material-ui
Version:
Material ui custom components
93 lines (59 loc) • 2.56 kB
Markdown
This project offers some custom components of [Material-ui](https://material-ui.com/)
As I use [Material-ui](https://material-ui.com/) in my projects, I decided to create this package that offers Material-ui custom components
Reuse custom components
It handles some components of Material-ui and customize it making it easer to use
This table component is based on [React Grid](https://devexpress.github.io/devextreme-reactive/react/grid/docs/guides/getting-started/)
```TSX
import { Table } from '@rabahzeineddine/Material-ui'
<Table
columns={columns}
rows={rows}
/>
```
> For more information check the [Table Documentation](src/components/Table/README.md)
```TSX
import { PersistentDrawer, DrawerPage } from '@rabahzeineddine/Material-ui'
import Component from 'Component' // Your component
import Icon from 'Icon' // Component Icon
<PersistentDrawer title={"Drawer"}>
<DrawerPage component={Component} id="componentId" label="Component" icon={Icon} />
<DrawerPage component={Component} id="componentId" label="Component" icon={Icon} />
</PersistentDrawer>
```
> For more information check the [Persistent Drawer Documentation](src/components/PersistentDrawer/README.md)
```TSX
import { FullScreenDialog } from '@rabahzeineddine/Material-ui'
<FullScreenDialog title={"Dialog title"} closeDialog={handleClose}>
<div>Dialog Content</div>
</FullScreenDialog>
```
> For more information check the [Full screen dialog Documentation](src/components/FullScreenDialog/README.md)
```TSX
import { SubmitButton } from '@rabahzeineddine/Material-ui'
<SubmitButton label="Submit" loading={loading}>
```
> For more information check the [Full screen dialog Documentation](src/components/SubmitButton/README.md)
```TSX
import { Tabs, Tab } from '@rabahzeineddine/Material-ui'
import Information from 'Information'
import Addresses from 'Addresses'
<Tabs fullWidth>
<Tab label="Information" component={Information} />
<Tab label="Addresses" component={Addresses} />
</Tabs>
```
> For more information check the [Full screen dialog Documentation](src/components/Tabs/README.md)
Check the [Storybook page](https://rabahzeineddine.github.io/Material-ui/)
<!--