Widget

React

Install and configure the Faster Fixes widget in your React application.

Installation

npm install @fasterfixes/react

Provider setup

Wrap your application with FeedbackProvider:

app/layout.tsx
import { FeedbackProvider } from "@fasterfixes/react";

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html>
      <body>
        <FeedbackProvider apiKey={process.env.NEXT_PUBLIC_FF_API_KEY!}>
          {children}
        </FeedbackProvider>
      </body>
    </html>
  );
}

Get your API key in Project Settings.

Props

PropTypeRequiredDescription
apiKeystringYesYour project API key from the dashboard
apiOriginstringNoAPI base URL. Defaults to https://faster-fixes.com
colorstringNoAccent color. Accepts any CSS color value. Defaults to #02527E
positionWidgetPositionNoFloating button placement. Defaults to bottom-right
classNamesobjectNoCSS class overrides for widget elements
labelsobjectNoCustom text labels for the widget UI

Color

The color prop accepts any CSS color value, including CSS variables:

<FeedbackProvider apiKey="your-api-key" color="var(--color-blue-500)">

Default: #02527E. The color is applied as a CSS custom property --ff-accent, so styles passed via the classNames prop naturally take precedence.

Position

The position prop controls where the floating button appears. Default: bottom-right.

PositionDescription
bottom-rightBottom-right corner (default)
bottom-leftBottom-left corner
top-rightTop-right corner
top-leftTop-left corner
middle-rightMiddle of the right edge
middle-leftMiddle of the left edge

The WidgetPosition type is exported from the @fasterfixes/core package.

Dashboard toggle

You can enable or disable the widget from Project Settings without deploying code changes.