UNPKG

@mui/x-data-grid-premium

Version:

The Premium plan edition of the MUI X Data Grid Components.

27 lines 1.06 kB
import * as React from 'react'; import { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro'; import { PromptFieldState } from "./PromptFieldContext.js"; export type PromptFieldRecordProps = Omit<GridSlotProps['baseIconButton'], 'className'> & { /** * A function to customize rendering of the component. */ render?: RenderProp<GridSlotProps['baseIconButton'], PromptFieldState>; /** * Override or extend the styles applied to the component. */ className?: string | ((state: PromptFieldState) => string); }; /** * A button that records the user's voice when clicked. * It renders the `baseIconButton` slot. * * Demos: * * - [Prompt Field](https://mui.com/x/react-data-grid/components/prompt-field/) * * API: * * - [PromptFieldRecord API](https://mui.com/x/api/data-grid/prompt-field-record/) */ declare const PromptFieldRecord: React.ForwardRefExoticComponent<PromptFieldRecordProps> | React.ForwardRefExoticComponent<Omit<PromptFieldRecordProps, "ref"> & React.RefAttributes<HTMLButtonElement>>; export { PromptFieldRecord };