PromptField API
API reference docs for the React PromptField component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { PromptField } from '@mui/x-data-grid-premium/components';
// or
import { PromptField } from '@mui/x-data-grid-premium';Learn about the difference by reading this guide on minimizing bundle size.
Called when the user submits the prompt.
Type:func
Signature:
function(prompt: string) => voidpromptThe prompt
The BCP 47 language tag to use for the speech recognition.
Type:string
Default:HTML lang attribute value or the user agent's language setting
Called when a speech recognition error occurs.
Type:func
Signature:
function(error: string) => voiderrorThe error message
The
ref is forwarded to the root element.Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.