{"version":"2.1.271","anchor":"plugin-ui-buttoninputselect-components-gain-actiondimcolo","canonical_anchor":"plugin-ui-buttoninputselect-components-gain-actiondimcolo","heading":"Plugin UI components gain an autoFocus prop","tier":"use","area":"Plugin UI","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271\/e\/plugin-ui-buttoninputselect-components-gain-actiondimcolo","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271","markdown":"### Plugin UI components gain an autoFocus prop\n\nPlugin Button, Input, and Select components can now be given autoFocus, and Button also gains action and dimColor props\n\n**What**\n\nPlugin UI components used when rendering plugin panes gained new props:\n\n- `Button` now accepts `action` (must be one of the engine's existing keybinding actions, such as `app:cycleDiffBase` or `app:diffFileListDown`; engine-only keys like `ctrl+c`\/`ctrl+d` still can't be rebound), plus a `dimColor` boolean.\n\n- `Button`, `Input`, and `Select` all gain an `autoFocus` prop.\n\n**Why**\n\nPlugin authors building custom UI panes can now make a button trigger an existing app action, dim button text, and have a component automatically receive focus when it appears, without writing custom focus-handling logic.\n\n- Area: Plugin UI\n- Names: `action`, `dimColor`, `autoFocus`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5"}