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: 4/12/2023, 3:24:55 PM