focus
On mount, focuses and selects the first enabled control in the form that accepts text input. Set it when the editor opens in a panel or modal and the user should start typing right away.
Usage
focus?: boolean;
Default: false.
Example
<script setup>
import { Editor, Willow } from "@svar-ui/vue-editor";
const items = [{ comp: "text", key: "name", label: "Name" }];
const values = { name: "John Doe" };
</script>
<template>
<Willow>
<Editor :items="items" :values="values" focus placement="modal" />
</Willow>
</template>