@lexical/react/LexicalAutoFocusPlugin
Functions
AutoFocusPlugin()
AutoFocusPlugin(
__namedParameters):null
Defined in: packages/lexical-react/src/LexicalAutoFocusPlugin.ts:26
Focuses the editor when the component is mounted. Pass defaultSelection
to control whether the selection is placed at the start ('rootStart') or
end ('rootEnd') of the root when there is no existing selection to restore.
This is a legacy plugin. When building an editor with the extension API, configure AutoFocusExtension instead.
Parameters
__namedParameters
Props
Returns
null
null, this plugin renders no DOM of its own.