@eduzz/nps-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

Eduzz NPS React

Componente React para realizar o NPS (Net Promoter Score) da Eduzz.

Instalação 🔧

npm install @eduzz/nps-react
yarn add @eduzz/nps-react

Como usar? 🤠

import Nps from '@eduzz/nps-react';

<Nps 
  params={{
    key_fields: {
      app: ['eduzz'],
      user_id: 123
    },
    tags: {
      application: 'orbita',
      id: 123,
      email: 'email@example.com',
      name: 'Michael Jackson'
    }
  }} 
/>

API ☁️

Props

type Apps = 'eduzz' | 'sun' | 'alumy' | 'backoffice' | 'telescope' | 'jobzz' | 'orbita' | 'nutror' | 'blinket';

type SetupParams = {
  key_fields: {
    app: [Apps];
    user_id: number;
  };
  tags?: Record<any, any>;
  /**
   * Defaults to 'https://nps.eduzz.com' 
   */
  endpoint?: string;
}

Desenvolvendo 💻

Para rodar o projeto localmente é bem simples:

// para instalar as dependências
yarn

// inicia o storybook
yarn dev

Readme

Keywords

none

Package Sidebar

Install

npm i @eduzz/nps-react

Weekly Downloads

32

Version

1.0.14

License

none

Unpacked Size

113 kB

Total Files

15

Last publish

Collaborators

  • luanlmd
  • vitorvmrs
  • miguelaugl
  • danieloprado
  • jonathasprodrigues
  • caferrari