UNPKG

1.3 kBTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '..';
3
4export interface ImageListItemBarProps extends StandardProps<{}, ImageListItemBarClassKey> {
5 /**
6 * An IconButton element to be used as secondary action target
7 * (primary action target is the item itself).
8 */
9 actionIcon?: React.ReactNode;
10 /**
11 * Position of secondary action IconButton.
12 */
13 actionPosition?: 'left' | 'right';
14 /**
15 * Position of the title bar.
16 */
17 position?: 'top' | 'bottom';
18 /**
19 * String or element serving as subtitle (support text).
20 */
21 subtitle?: React.ReactNode;
22 /**
23 * Title to be displayed on item.
24 */
25 title?: React.ReactNode;
26 /**
27 * Position of the title bar.
28 * @deprecated Use position instead.
29 */
30 titlePosition?: 'top' | 'bottom';
31}
32
33export type ImageListItemBarClassKey =
34 | 'root'
35 | 'positionBottom'
36 | 'positionTop'
37 | 'rootSubtitle'
38 | 'titleWrap'
39 | 'titleWrapActionPosLeft'
40 | 'titleWrapActionPosRight'
41 | 'title'
42 | 'subtitle'
43 | 'actionIcon'
44 | 'actionIconActionPosLeft';
45
46/**
47 *
48 * Demos:
49 *
50 * - [Image List](https://mui.com/components/image-list/)
51 *
52 * API:
53 *
54 * - [ImageListItemBar API](https://mui.com/api/image-list-item-bar/)
55 */
56export default function ImageListItemBar(props: ImageListItemBarProps): JSX.Element;