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 ChipDeleteSlot = 'root'; export interface ChipDeleteSlots { /** * The component that renders the root. * @default 'button' */ root?: React.ElementType; } export type ChipDeleteSlotsAndSlotProps = CreateSlotsAndSlotProps; }>; export interface ChipDeletePropsColorOverrides { } export interface ChipDeletePropsVariantOverrides { } export interface ChipDeleteTypeMap

{ props: P & { /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'neutral' */ color?: OverridableStringUnion; /** * If provided, it will replace the default icon. */ children?: React.ReactNode; /** * If `true`, the component is disabled. * If `undefined`, the value inherits from the parent chip via a React context. */ disabled?: boolean; /** * Callback fired when the component is not disabled and either: * - `Backspace`, `Enter` or `Delete` is pressed. * - The component is clicked. */ onDelete?: React.EventHandler | React.KeyboardEvent>; /** * 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; } & ChipDeleteSlotsAndSlotProps; defaultComponent: D; } export type ChipDeleteProps = OverrideProps, D>; export interface ChipDeleteOwnerState extends ApplyColorInversion { /** * If `true`, the element's focus is visible. */ focusVisible?: boolean; }