import * as React from 'react'; import { OverrideProps } from '@mui/types'; import { SxProps } from '../styles/types/theme.js'; import '@mui/system'; import '../styles/types/colorScheme.js'; import '../styles/types/colorSystem.js'; import '../styles/types/focus.js'; import '../styles/types/shadow.js'; import '../styles/types/radius.js'; import '../styles/types/typography.js'; import '../styles/types/variants.js'; declare type FormLabelSlot = "root" | "asterisk"; interface ComponentsProps { root?: SlotComponentProps<"label", { sx?: SxProps; }, FormLabelOwnerState>; asterisk?: SlotComponentProps<"span", { sx?: SxProps; }, FormLabelOwnerState>; } interface FormLabelTypeMap
{
props: P & {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
/**
* The asterisk is added if required=`true`
*/
required?: boolean;
disabled?: boolean;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps;
};
defaultComponent: D;
}
declare type FormLabelProps