1.2.4 • Published 7 months ago

@feedback-loop/react v1.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

@feedback-loop/react

The Floop widget for React apps.

Usage

Install the Floop react package

pnpm install @feedback-loop/react

npm install @feedback-loop/react

yarn add @feedback-loop/react

Import the widget into your application

import { FloopWidget } from "@feedback-loop/react"

Use the Floop widget within your code

You can use the widget straight from installation, however, if you want to apply your own styles to the trigger, which is left intentionally bare, we suggest you create a wrapper so you can style it to your needs.

The React Floop Widget is used on our own dashboard, below is the exact code we are using to import and use the widget.

"use client";

import { FloopWidget } from "@feedback-loop/react";
import { buttonVariants } from "@/components/ui/button";

type Props = {
  projectId: string;
  userEmail: string;
};

export const FloopWidgetButton = ({ projectId, userEmail }: Props) => {
  return (
    <FloopWidget projectId={projectId} userEmail={userEmail}>
      <span className={buttonVariants({ variant: "themed" })}>
        Give Feedback
      </span>
    </FloopWidget>
  );
}

We have also included the following data attributes so that you are able to easily locate either the trigger, or the widget. This is to help aid you, should you want to either add or change some of the styling or for testing.

data-floop-widget="widget-trigger" 
data-floop-widget="widget-popup"

License

Licensed under the MIT license.

1.2.0

8 months ago

1.0.2

8 months ago

1.1.0

8 months ago

1.0.1

8 months ago

1.0.0

9 months ago

0.0.20

10 months ago

0.0.21

10 months ago

0.0.22

10 months ago

0.0.23

10 months ago

0.0.24

10 months ago

0.0.25

10 months ago

1.2.4

7 months ago

1.2.3

7 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.0.3

8 months ago

0.0.19

10 months ago

0.0.30

9 months ago

0.0.31

9 months ago

0.0.32

9 months ago

0.0.33

9 months ago

0.0.34

9 months ago

0.0.35

9 months ago

0.0.26

9 months ago

0.0.27

9 months ago

0.0.28

9 months ago

0.0.29

9 months ago

0.0.13

11 months ago

0.0.15

11 months ago

0.0.16

11 months ago

0.0.17

11 months ago

0.0.18

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago