Skip to Content

Positions

Control where the feedback trigger button appears on the page. Pass a position value inside widget when initializing the SDK.

Options

type WidgetPosition = "right-center-horizontal" | "right-center-vertical";
ValueDescription
"right-center-vertical"Trigger button on the right edge of the viewport, text rotated vertically. Default.
"right-center-horizontal"Trigger button on the right edge of the viewport, text displayed horizontally.

Both positions center the button vertically on the right side of the screen.

Vertical (default)

The trigger text is rotated 90 degrees, creating a slim tab on the right edge of the page. This is the least intrusive option.

createMaestrio({ apiKey: "your-api-key", baseUrl: "https://app.maestrio.ai", projectId: "your-project-id", widget: { position: "right-center-vertical", }, });

Horizontal

The trigger text is displayed horizontally. This makes the button wider but easier to read.

createMaestrio({ apiKey: "your-api-key", baseUrl: "https://app.maestrio.ai", projectId: "your-project-id", widget: { position: "right-center-horizontal", }, });

Combining with theme

Position works independently from theme and labels — you can combine them freely:

createMaestrio({ apiKey: "your-api-key", baseUrl: "https://app.maestrio.ai", projectId: "your-project-id", widget: { position: "right-center-horizontal", theme: { primaryColor: "#f97316", borderRadius: "24px", }, labels: { triggerText: "Share Feedback", }, }, });