UNPKG

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