Skip to content
EN

GridListTileBar API

The API documentation of the GridListTileBar React component. Learn more about the props and the CSS customization points.

import GridListTileBar from '@material-ui/core/GridListTileBar';

Props

Name Type Default Description
actionIcon node An IconButton element to be used as secondary action target (primary action target is the tile itself).
actionPosition 'left'
| 'right'
'right' Position of secondary action IconButton.
classes object Override or extend the styles applied to the component. See CSS API below for more details.
subtitle node String or element serving as subtitle (support text).
title node Title to be displayed on tile.
titlePosition 'top'
| 'bottom'
'bottom' Position of the title bar.

The ref is forwarded to the root element.

Any other props supplied will be provided to the root element (native element).

CSS

  • Style sheet name: MuiGridListTileBar.
  • Style sheet details:
Rule name Global class Description
root MuiGridListTileBar-root Styles applied to the root element.
titlePositionBottom MuiGridListTileBar-titlePositionBottom Styles applied to the root element if titlePosition="bottom".
titlePositionTop MuiGridListTileBar-titlePositionTop Styles applied to the root element if titlePosition="top".
rootSubtitle MuiGridListTileBar-rootSubtitle Styles applied to the root element if a subtitle is provided.
titleWrap MuiGridListTileBar-titleWrap Styles applied to the title and subtitle container element.
titleWrapActionPosLeft MuiGridListTileBar-titleWrapActionPosLeft Styles applied to the container element if actionPosition="left".
titleWrapActionPosRight MuiGridListTileBar-titleWrapActionPosRight Styles applied to the container element if actionPosition="right".
title MuiGridListTileBar-title Styles applied to the title container element.
subtitle MuiGridListTileBar-subtitle Styles applied to the subtitle container element.
actionIcon MuiGridListTileBar-actionIcon Styles applied to the actionIcon if supplied.
actionIconActionPosLeft MuiGridListTileBar-actionIconActionPosLeft Styles applied to the actionIcon if actionPosition="left".

You can override the style of the component thanks to one of these customization points:

If that's not sufficient, you can check the implementation of the component for more detail.

Notes

The component is fully StrictMode compatible.

Demos