Back to reference

GrammarlyButtonElement

<grammarly-button> is a web component that allows you to place the Grammarly button in a custom position in your app.

declare class GrammarlyButtonElement extends HTMLElement {
  get tonePosition(): TonePosition | undefined;
}

Properties

tonePositionTonePosition | undefined
The position of the tone detectoropen in new window (if present) relative to the Grammarly button.
Default: "left"
Example:

<grammarly-button tone-position="left"></grammarly-button>
Last Updated: 10/12/2022, 8:08:40 PM