Back to reference

GrammarlyButtonProps

Props for <GrammarlyButton>.

interface GrammarlyButtonProps extends HTMLAttributes<HTMLElement> {
  children?: ReactNode;
  menuPosition?: "left" | "right";
  tonePosition?: "left" | "right";
}

Properties

childrenoptionalType: ReactNode
menuPositionoptionalType: "left" | "right"Default: "left"

Set the position of the Grammarly button menu relative to the Grammarly button.

Since: v2.1.0

tonePositionoptionalType: "left" | "right"Default: "left"

Set the position of the tone detector relative to the Grammarly button.

Last Updated: 5/17/2023, 6:54:28 PM