Socket
Socket
Sign inDemoInstall

@feelback/react

Package Overview
Dependencies
4
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @feelback/react

Use Feelback service within your React website


Version published
Maintainers
1
Created

Readme

Source

Feelback React integration library

This package is the React SDK of the Feelback service, which includes:

  • builtin components with presets ready to use in your pages
  • hooks for easy interaction with the Feelback API, useful for building custom components
  • predefined styling you can adopt for nice-looking components with no effort

Prerequisite

  • node 14+
  • react 17+ (peer dependency)

Installation

Add the package with your package manager of choice:

npm install @feelback/react
# or
pnpm add @feelback/react
# or
yarn add @feelback/react

The package is completely tree-shakable. You can take advantage of bundlers like Vite or esbuild to trim the final package size with only the components you actually use.

Example

After the package is installed, you can import components and presets:

import { FeelbackPulse, PRESET_PULSE_HEART } from "@feelback/react";

function PostTitle({ title }) {
    return (
        <div>
            <h1>{title}</h1>
            <FeelbackPulse contentSetId="content-set-id-from-the-panel"
                preset={PRESET_PULSE_HEART}
                showCount
            />
        </div>
    );
}

Style

The package provides a predefined style you can import:

import "@feelback/react/styles/feelback.css";

Additional resources

Types

This package is built in typescript so it has full typings support.

License

MIT © Giuseppe La Torre

Keywords

FAQs

Last updated on 01 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc