import * as React from 'react'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; import { ColorPaletteProp, VariantProp, SxProps, ApplyColorInversion } from '../styles/types'; import { SlotProps, CreateSlotsAndSlotProps } from '../utils/types'; export type CardSlot = 'root'; export interface CardSlots { /** * The component that renders the root. * @default 'div' */ root?: React.ElementType; } export type CardSlotsAndSlotProps = CreateSlotsAndSlotProps; }>; export interface CardPropsColorOverrides { } export interface CardPropsVariantOverrides { } export interface CardPropsSizeOverrides { } export interface CardTypeMap

{ props: P & { /** * Used to render icon or text elements inside the Card if `src` is not set. * This can be an element, or just a string. */ children?: React.ReactNode; /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'neutral' */ color?: OverridableStringUnion; /** * If `true`, the children with an implicit color prop invert their colors to match the component's variant and color. * @default false */ invertedColors?: boolean; /** * The component orientation. * @default 'vertical' */ orientation?: 'horizontal' | 'vertical'; /** * The size of the component. * It accepts theme values between 'sm' and 'lg'. * @default 'md' */ size?: OverridableStringUnion<'sm' | 'md' | 'lg', CardPropsSizeOverrides>; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; /** * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use. * @default 'outlined' */ variant?: OverridableStringUnion; } & CardSlotsAndSlotProps; defaultComponent: D; } export type CardProps = OverrideProps, D>; export interface CardOwnerState extends ApplyColorInversion { }