UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

68 lines (63 loc) 1.72 kB
import * as React from 'react'; import { SxProps } from '@mui/system'; import { OverridableStringUnion } from '@mui/types'; import { Theme } from '..'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; import { ImageListClasses } from './imageListClasses'; export interface ImageListPropsVariantOverrides {} export interface ImageListTypeMap<P = {}, D extends React.ElementType = 'ul'> { props: P & { /** * The content of the component, normally `ImageListItem`s. */ children: NonNullable<React.ReactNode>; /** * Override or extend the styles applied to the component. */ classes?: Partial<ImageListClasses>; /** * Number of columns. * @default 2 */ cols?: number; /** * The gap between items in px. * @default 4 */ gap?: number; /** * The height of one row in px. * @default 'auto' */ rowHeight?: number | 'auto'; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; /** * The variant to use. * @default 'standard' */ variant?: OverridableStringUnion< 'masonry' | 'quilted' | 'standard' | 'woven', ImageListPropsVariantOverrides >; }; defaultComponent: D; } /** * * Demos: * * - [Image List](https://mui.com/components/image-list/) * * API: * * - [ImageList API](https://mui.com/api/image-list/) */ declare const ImageList: OverridableComponent<ImageListTypeMap>; export type ImageListProps< D extends React.ElementType = ImageListTypeMap['defaultComponent'], P = {}, > = OverrideProps<ImageListTypeMap<P, D>, D>; export default ImageList;