Material-ui custom components
This project offers some custom components of Material-ui
Why a package was created
As I use Material-ui in my projects, I decided to create this package that offers Material-ui custom components
What problem the package solves
Reuse custom components
How the package solves the problem
It handles some components of Material-ui and customize it making it easer to use
All valid configurations/props of the package
Components
Table
This table component is based on React Grid
import { Table } from '@rabahzeineddine/Material-ui'
<Table
columns={columns}
rows={rows}
/>
For more information check the Table Documentation
PersistentDrawer
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
FullScreenDialog
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
SubmitButton
import { SubmitButton } from '@rabahzeineddine/Material-ui'
<SubmitButton label="Submit" loading={loading}>
For more information check the Full screen dialog Documentation
Tabs
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
Demos of the package in action
Check the Storybook page