-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
The ItemTableCell wraps an [MUI TableCell](https://material-ui.com/api/table-cell/) and adds styling. | ||
|
||
## Default Usage | ||
```jsx | ||
import { Paper } from '@material-ui/core'; | ||
import ItemTableCell from "./ItemTableCell"; | ||
|
||
<Paper> | ||
<ItemTableCell> | ||
Hello, moto! | ||
</ItemTableCell> | ||
</Paper> | ||
``` | ||
|
||
```jsx static | ||
<Paper> | ||
<ItemTableCell> | ||
Hello, moto! | ||
</ItemTableCell> | ||
</Paper> | ||
``` | ||
|
||
## Forwarded TableCell Props | ||
Props can be passed to the TableCell component using the TableCellProps prop. | ||
```jsx | ||
import { Paper } from '@material-ui/core'; | ||
import ItemTableCell from "./ItemTableCell"; | ||
|
||
<ItemTableCell TableCellProps={{ component: Paper, variant: "footer" }}> | ||
Hello, moto! | ||
</ItemTableCell> | ||
``` | ||
|
||
```jsx static | ||
<ItemTableCell TableCellProps={{ component: Paper, variant: "footer" }}> | ||
Hello, moto! | ||
</ItemTableCell> | ||
``` |