UNPKG

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