Skip to content

Commit

Permalink
[Table] Document the CSS API (#12147)
Browse files Browse the repository at this point in the history
* added 3 exports and ran yarn docs:api

* let's merge
  • Loading branch information
chenop authored and oliviertassinari committed Jul 14, 2018
1 parent c36846a commit f989134
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/material-ui/src/TableBody/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';

const styles = {
export const styles = {
root: {
display: 'table-row-group',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/TableFooter/TableFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';

const styles = {
export const styles = {
root: {
display: 'table-footer-group',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/TableHead/TableHead.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';

const styles = {
export const styles = {
root: {
display: 'table-header-group',
},
Expand Down
14 changes: 14 additions & 0 deletions pages/api/table-body.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ title: TableBody API

Any other properties supplied will be spread to the root element (native element).

## CSS API

You can override all the class names injected by Material-UI thanks to the `classes` property.
This property accepts the following keys:
- `root`

Have a look at [overriding with classes](/customization/overrides#overriding-with-classes) section
and the [implementation of the component](https://github.com/mui-org/material-ui/tree/master/packages/material-ui/src/TableBody/TableBody.js)
for more detail.

If using the `overrides` key of the theme as documented
[here](/customization/themes#customizing-all-instances-of-a-component-type),
you need to use the following style sheet name: `MuiTableBody`.

## Demos

- [Tables](/demos/tables)
Expand Down
14 changes: 14 additions & 0 deletions pages/api/table-footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ title: TableFooter API

Any other properties supplied will be spread to the root element (native element).

## CSS API

You can override all the class names injected by Material-UI thanks to the `classes` property.
This property accepts the following keys:
- `root`

Have a look at [overriding with classes](/customization/overrides#overriding-with-classes) section
and the [implementation of the component](https://github.com/mui-org/material-ui/tree/master/packages/material-ui/src/TableFooter/TableFooter.js)
for more detail.

If using the `overrides` key of the theme as documented
[here](/customization/themes#customizing-all-instances-of-a-component-type),
you need to use the following style sheet name: `MuiTableFooter`.

## Demos

- [Tables](/demos/tables)
Expand Down
14 changes: 14 additions & 0 deletions pages/api/table-head.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ title: TableHead API

Any other properties supplied will be spread to the root element (native element).

## CSS API

You can override all the class names injected by Material-UI thanks to the `classes` property.
This property accepts the following keys:
- `root`

Have a look at [overriding with classes](/customization/overrides#overriding-with-classes) section
and the [implementation of the component](https://github.com/mui-org/material-ui/tree/master/packages/material-ui/src/TableHead/TableHead.js)
for more detail.

If using the `overrides` key of the theme as documented
[here](/customization/themes#customizing-all-instances-of-a-component-type),
you need to use the following style sheet name: `MuiTableHead`.

## Demos

- [Tables](/demos/tables)
Expand Down

0 comments on commit f989134

Please sign in to comment.