Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jan 21, 2021
1 parent e3724de commit 9df197e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/components/ItemTableCell/ItemTableCell.md
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>
```

0 comments on commit 9df197e

Please sign in to comment.