GridListTileBar

GridListTileBar

The API documentation of the GridListTileBar React component.

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 enum: '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 enum: 'top' |
 'bottom'
'bottom' Position of the title bar.

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:

Name Description
root Styles applied to the root element.
titlePositionBottom Styles applied to the root element if titlePosition="bottom".
titlePositionTop Styles applied to the root element if titlePosition="top".
rootSubtitle Styles applied to the root element if a subtitle is provided.
titleWrap Styles applied to the title and subtitle container element.
titleWrapActionPosLeft Styles applied to the container element if actionPosition="left".
titleWrapActionPosRight Styles applied to the container element if actionPosition="right".
title Styles applied to the title container element.
subtitle Styles applied to the subtitle container element.
actionIcon Styles applied to the actionIcon if supplied.
actionIconActionPosLeft Styles applied to the actionIcon if `actionPosition="left".

Have a look at overriding with classes section and the implementation of the component for more detail.

If using the overrides key of the theme as documented here, you need to use the following style sheet name: MuiGridListTileBar.

Demos