focus
Description
Optional. Controls whether the editor widget should automatically gain focus when it is renderedUsage
focus?: boolean;
Parameters
If true the editor widget automatically gains focus when it is rendered. Default is false.
Example
<script>
import { Editor } from "@svar-ui/svelte-editor";
const items = [
{ comp: "text", key: "title", label: "Title" }
];
</script>
<Editor {items} focus={true} />