UNPKG

994 BTypeScriptView Raw
1import * as React from 'react';
2import { OverridableComponent, OverrideProps } from '../OverridableComponent';
3
4export interface GridListTileTypeMap<P = {}, D extends React.ElementType = 'li'> {
5 props: P & {
6 cols?: number;
7 rows?: number;
8 };
9 defaultComponent: D;
10 classKey: GridListTileClassKey;
11}
12/**
13 * ⚠️ The GridList component was renamed to ImageList to align with the current Material Design naming.
14 *
15 * You should use `import { ImageListItem } from '@material-ui/core'`
16 * or `import ImageListItem from '@material-ui/core/ImageListItem'`.
17 * API:
18 *
19 * - [GridListTile API](https://mui.com/api/grid-list-tile/)
20 */
21declare const GridListTile: OverridableComponent<GridListTileTypeMap>;
22
23export type GridListTileClassKey = 'root' | 'tile' | 'imgFullHeight' | 'imgFullWidth';
24
25export type GridListTileProps<
26 D extends React.ElementType = GridListTileTypeMap['defaultComponent'],
27 P = {}
28> = OverrideProps<GridListTileTypeMap<P, D>, D>;
29
30export default GridListTile;