import * as React from 'react'; import { OverrideProps } from '@mui/types'; import { CreateSlotsAndSlotProps, SlotCommonProps, SlotProps } from '../types/slot'; export type FormLabelSlot = 'root' | 'asterisk'; export interface FormLabelSlots { /** * The component that renders the root. * @default 'label' */ root?: React.ElementType; /** * The component that renders the asterisk. * @default 'span' */ asterisk?: React.ElementType; } export type FormLabelSlotsAndSlotProps = CreateSlotsAndSlotProps; asterisk: SlotProps<'span', object, FormLabelOwnerState>; }>; export interface FormLabelTypeMap

{ props: P & FormLabelSlotsAndSlotProps & { /** * The content of the component. */ children?: React.ReactNode; /** * The asterisk is added if required=`true` */ required?: boolean; /** * If `true`, the label should be displayed in a disabled state. */ disabled?: boolean; /** * If `true`, the label is displayed in an error state. */ error?: boolean; /** * The size of the component. * @default 'medium' */ size?: 'small' | 'medium' | 'large'; }; defaultComponent: D; } export type FormLabelProps = OverrideProps, D>; export interface FormLabelOwnerState extends FormLabelProps { }