UNPKG

@mui/material

Version:

Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.

48 lines 1.57 kB
import * as React from 'react'; import { SxProps } from '@mui/system'; import { Theme } from "../index.js"; import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js"; import { ImageListItemClasses } from "./imageListItemClasses.js"; export interface ImageListItemOwnProps { /** * The content of the component, normally an `<img>`. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: Partial<ImageListItemClasses>; /** * Width of the item in number of grid columns. * @default 1 */ cols?: number; /** * Height of the item in number of grid rows. * @default 1 */ rows?: number; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; } export interface ImageListItemTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'li'> { props: AdditionalProps & ImageListItemOwnProps; defaultComponent: RootComponent; } /** * * Demos: * * - [Image List](https://mui.com/material-ui/react-image-list/) * * API: * * - [ImageListItem API](https://mui.com/material-ui/api/image-list-item/) */ declare const ImageListItem: OverridableComponent<ImageListItemTypeMap>; export type ImageListItemProps<RootComponent extends React.ElementType = ImageListItemTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ImageListItemTypeMap<AdditionalProps, RootComponent>, RootComponent> & { component?: React.ElementType; }; export default ImageListItem;