{"version":"2.1.334","anchor":"plugin-ui-client-element-accepts-autofocus","canonical_anchor":"plugin-ui-client-element-accepts-autofocus","heading":"Embedded modules in plugin screens can ask to take focus first","tier":"use","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/plugin-ui-client-element-accepts-autofocus","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Embedded modules in plugin screens can ask to take focus first\n\nThe Client element in plugin-built screens now accepts autoFocus, as buttons, text inputs and selects already did\n\n**What**\n\nIn the screens plugins build inside Claude Code, the `Client` element, which embeds a module from the plugin, now accepts `autoFocus`. Before, it was rejected. Buttons, text inputs and select lists already accepted it.\n\nA `Client` element must have a `key` and a `module`, both non-empty text, and may also set any of these:\n\n- `props`\n\n- `width`\n\n- `height`\n\n- `flexGrow`\n\n- `autoFocus`\n\nThe error message for an invalid `Client` element now lists `autoFocus` too. No switch controls this.\n\n**Why**\n\nPlugin authors can ask for an embedded module to receive keyboard focus as soon as the screen opens.\n\n- Area: Plugins\n- Names: `autoFocus`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}