import * as React from 'react'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; import { ColorPaletteProp, SxProps, VariantProp, ApplyColorInversion } from '../styles/types'; import { SlotProps, CreateSlotsAndSlotProps } from '../utils/types'; export type ModalCloseSlot = 'root'; export interface ModalCloseSlots { /** * The component that renders the root. * @default 'button' */ root?: React.ElementType; } export type ModalCloseSlotsAndSlotProps = CreateSlotsAndSlotProps; }>; export interface ModalClosePropsColorOverrides { } export interface ModalClosePropsVariantOverrides { } export interface ModalClosePropsSizeOverrides { } export interface ModalCloseTypeMap

{ props: P & { /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'neutral' */ color?: OverridableStringUnion; /** * The size of the component. * @default 'md' */ size?: OverridableStringUnion<'sm' | 'md' | 'lg', ModalClosePropsSizeOverrides>; /** * 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 'plain' */ variant?: OverridableStringUnion; } & ModalCloseSlotsAndSlotProps; defaultComponent: D; } export type ModalCloseProps = OverrideProps, D>; export interface ModalCloseOwnerState extends ApplyColorInversion { focusVisible?: boolean; }