{"version":"2.1.257","anchor":"button-jsx-element-gains-hotkey-and-plain-props-and-infers","canonical_anchor":"button-jsx-element-gains-hotkey-and-plain-props-and-infers","heading":"Button JSX element gains hotkey and plain props, and infers label from a single string child","tier":"internal","area":"Terminal UI","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.257\/e\/button-jsx-element-gains-hotkey-and-plain-props-and-infers","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.257","markdown":"### Button JSX element gains hotkey and plain props, and infers label from a single string child\n\nThe internal Button element can infer its label from a string child and takes hotkey and plain props.\n\nThe internal UI `<Button>` JSX element can now infer its label from a single string child instead of requiring a `label` prop. It also gains two new optional props: `hotkey`, which must be a single digit, and `plain`, a boolean; both are validated and passed through to the rendered button.\n\n- Area: Terminal UI\n- Names: `hotkey`, `plain`\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5"}