@mui/x-date-pickers
Version:
The community edition of the MUI X Date and Time Picker components.
22 lines • 1.35 kB
text/typescript
import type { UseFieldStateReturnValue } from "./useFieldState.mjs";
import type { FieldSection } from "../../../models/index.mjs";
import type { UseFieldDOMGetters, UseFieldInternalProps } from "./useField.types.mjs";
import type { UseFieldCharacterEditingReturnValue } from "./useFieldCharacterEditing.mjs";
import type { PickerAnyManager } from "../../models/index.mjs";
import type { PickersSectionElement } from "../../../PickersSectionList/index.mjs";
/**
* Generate the props to pass to the content element of each section of the field.
* @param {UseFieldSectionContentPropsParameters} parameters The parameters of the hook.
* @returns {UseFieldSectionContentPropsReturnValue} The props to forward to the content element of each section of the field.
*/
export declare function useFieldSectionContentProps(parameters: UseFieldSectionContentPropsParameters): UseFieldSectionContentPropsReturnValue;
interface UseFieldSectionContentPropsParameters {
manager: PickerAnyManager;
stateResponse: UseFieldStateReturnValue<any>;
applyCharacterEditing: UseFieldCharacterEditingReturnValue;
internalPropsWithDefaults: UseFieldInternalProps<any, any>;
domGetters: UseFieldDOMGetters;
focused: boolean;
}
type UseFieldSectionContentPropsReturnValue = (section: FieldSection, sectionIndex: number) => PickersSectionElement['content'];
export {};