focus
Description
Optional. Controls whether the comments editor should be auto-focused after renderingUsage
focus?: boolean;
Parameters
true
- if set to true, the comments editor will automatically receive focus after the widget is rendered.false
(default) - the editor will not be focused automatically
Example
Enabling auto-focus:
<Comments focus={true} />
This will set the comments editor to automatically focus once the widget is rendered.
Details
The property controls whether the comments editor should be auto-focused after the widget's rendering.