Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100918067
CardMedia.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 3, 22:50
Size
1 KB
Mime Type
text/x-java
Expires
Wed, Feb 5, 22:50 (2 d)
Engine
blob
Format
Raw Data
Handle
24049148
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
CardMedia.d.ts
View Options
import * as React from 'react';
import { SxProps } from '@mui/system';
import { Theme } from '..';
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
import { CardMediaClasses } from './cardMediaClasses';
export interface CardMediaTypeMap<P, D extends React.ElementType> {
props: P & {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<CardMediaClasses>;
/**
* Image to be displayed as a background image.
* Either `image` or `src` prop must be specified.
* Note that caller must specify height otherwise the image will not be visible.
*/
image?: string;
/**
* An alias for `image` property.
* Available only with media components.
* Media components: `video`, `audio`, `picture`, `iframe`, `img`.
*/
src?: string;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
};
defaultComponent: D;
}
/**
*
* Demos:
*
* - [Card](https://mui.com/material-ui/react-card/)
*
* API:
*
* - [CardMedia API](https://mui.com/material-ui/api/card-media/)
*/
declare const CardMedia: OverridableComponent<CardMediaTypeMap<{}, 'div'>>;
export type CardMediaProps<D extends React.ElementType = 'div', P = {}> = OverrideProps<
CardMediaTypeMap<P, D>,
D
>;
export default CardMedia;
Event Timeline
Log In to Comment