@mui/x-date-pickers
Version:
The community edition of the MUI X Date and Time Picker components.
22 lines • 1.32 kB
TypeScript
import { UseFieldStateReturnValue } from "./useFieldState.js";
import { FieldSection } from "../../../models/index.js";
import { UseFieldDOMGetters, UseFieldInternalProps } from "./useField.types.js";
import { UseFieldCharacterEditingReturnValue } from "./useFieldCharacterEditing.js";
import { PickerAnyManager } from "../../models/index.js";
import { PickersSectionElement } from "../../../PickersSectionList/index.js";
/**
* 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 {};