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: 2/7/2023, 10:38:49 PM