@mui/x-data-grid-premium
Version:
The Premium plan edition of the MUI X Data Grid Components.
27 lines • 1.05 kB
TypeScript
import * as React from 'react';
import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
import { type PromptFieldState } from "./PromptFieldContext.js";
export type PromptFieldControlProps = Omit<GridSlotProps['baseTextField'], 'className'> & {
/**
* A function to customize rendering of the component.
*/
render?: RenderProp<GridSlotProps['baseTextField'], PromptFieldState>;
/**
* Override or extend the styles applied to the component.
*/
className?: string | ((state: PromptFieldState) => string);
};
/**
* A component that takes user input.
* It renders the `baseTextField` slot.
*
* Demos:
*
* - [Prompt Field](https://mui.com/x/react-data-grid/components/prompt-field/)
*
* API:
*
* - [PromptFieldControl API](https://mui.com/x/api/data-grid/prompt-field-control/)
*/
declare const PromptFieldControl: React.ForwardRefExoticComponent<PromptFieldControlProps> | React.ForwardRefExoticComponent<Omit<PromptFieldControlProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
export { PromptFieldControl };