Saltar al contenido

ImageListItemBar API

API documentation for the React ImageListItemBar component. Learn about the available props, and the CSS API.

Import

import ImageListItemBar from '@material-ui/core/ImageListItemBar';
// or
import { ImageListItemBar } from '@material-ui/core';
You can learn about the difference by reading this guide on minimizing bundle size.

Component name

The name MuiImageListItemBar can be used when providing default props or style overrides in the theme.

Props

NameTypeDefaultDescription
actionIconnodeAn IconButton element to be used as secondary action target (primary action target is the item itself).
actionPosition'left'
| 'right'
'right'Position of secondary action IconButton.
classesobjectOverride or extend the styles applied to the component. See CSS API below for more details.
position'below'
| 'bottom'
| 'top'
'bottom'Position of the title bar.
subtitlenodeString or element serving as subtitle (support text).
titlenodeTitle to be displayed.

The ref is forwarded to the root element.
Any other props supplied will be provided to the root element (native element).

CSS

Rule nameGlobal classDescription
root.MuiImageListItemBar-rootStyles applied to the root element.
positionBottom.MuiImageListItemBar-positionBottomStyles applied to the root element if position="bottom".
positionTop.MuiImageListItemBar-positionTopStyles applied to the root element if position="top".
positionBelow.MuiImageListItemBar-positionBelowStyles applied to the root element if position="below".
titleWrap.MuiImageListItemBar-titleWrapStyles applied to the title and subtitle container element.
titleWrapBelow.MuiImageListItemBar-titleWrapBelowStyles applied to the title and subtitle container element if position="below".
titleWrapActionPosLeft.MuiImageListItemBar-titleWrapActionPosLeftStyles applied to the container element if actionPosition="left".
titleWrapActionPosRight.MuiImageListItemBar-titleWrapActionPosRightStyles applied to the container element if actionPosition="right".
title.MuiImageListItemBar-titleStyles applied to the title container element.
subtitle.MuiImageListItemBar-subtitleStyles applied to the subtitle container element.
actionIcon.MuiImageListItemBar-actionIconStyles applied to the actionIcon if supplied.
actionIconActionPosLeft.MuiImageListItemBar-actionIconActionPosLeftStyles applied to the actionIcon if actionPosition="left".

You can override the style of the component using one of these customization options: If that isn't sufficient, you can check the implementation of the component for more detail.

Demos