import * as React from 'react'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; import { ColorPaletteProp } from '../styles/types/colorSystem.js'; import { VariantProp } from '../styles/types/variants.js'; import { SxProps } from '../styles/types/theme.js'; import '@mui/system'; import '../styles/types/colorScheme.js'; import '../styles/types/focus.js'; import '../styles/types/shadow.js'; import '../styles/types/radius.js'; import '../styles/types/typography.js'; declare type ChipSlot = "root" | "label" | "action" | "startDecorator" | "endDecorator"; interface ChipPropsColorOverrides { } interface ChipPropsSizeOverrides { } interface ChipPropsVariantOverrides { } interface ComponentsProps { root?: SlotComponentProps<"div", { sx?: SxProps; }, ChipOwnerState>; label?: SlotComponentProps<"span", { sx?: SxProps; }, ChipOwnerState>; action?: SlotComponentProps<"button", { sx?: SxProps; component?: React.ElementType; href?: string; to?: string; }, ChipOwnerState>; startDecorator?: SlotComponentProps<"span", { sx?: SxProps; }, ChipOwnerState>; endDecorator?: SlotComponentProps<"span", { sx?: SxProps; }, ChipOwnerState>; } interface ChipTypeMap

{ props: P & { /** * The content of the component. */ children?: React.ReactNode; /** * The props used for each slot inside the component. * @default {} */ componentsProps?: ComponentsProps; /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'primary' */ color?: OverridableStringUnion; /** * If `true`, the component is disabled. * @default false */ disabled?: boolean; /** * Element placed after the children. */ endDecorator?: React.ReactNode; /** * Element action click handler. */ onClick?: React.MouseEventHandler; /** * The size of the component. * It accepts theme values between 'sm' and 'lg'. * @default 'md' */ size?: OverridableStringUnion<"sm" | "md" | "lg", ChipPropsSizeOverrides>; /** * Element placed before the children. */ startDecorator?: React.ReactNode; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; /** * The variant to use. * @default 'solid' */ variant?: OverridableStringUnion; }; defaultComponent: D; } declare type ChipProps = OverrideProps, D>; interface ChipOwnerState extends ChipProps { /** * If `true`, the chip is clickable. */ clickable: boolean; /** * If `true`, the action slot's focus is visible. */ focusVisible: boolean; } export { ChipOwnerState, ChipProps, ChipPropsColorOverrides, ChipPropsSizeOverrides, ChipPropsVariantOverrides, ChipSlot, ChipTypeMap };