1.0.14 • Published 8 months ago
@eduzz/nps-react v1.0.14
Eduzz NPS React
Componente React para realizar o NPS (Net Promoter Score) da Eduzz.
Instalação :wrench:
npm install @eduzz/nps-react
yarn add @eduzz/nps-react
Como usar? :cowboy_hat_face:
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 :cloud:
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 :computer:
Para rodar o projeto localmente é bem simples:
// para instalar as dependências
yarn
// inicia o storybook
yarn dev
1.0.2
9 months ago
1.0.1
9 months ago
1.0.0
9 months ago
1.0.9
8 months ago
1.0.8
8 months ago
1.0.7
9 months ago
1.0.6
9 months ago
1.0.5
9 months ago
1.0.4
9 months ago
1.0.3
9 months ago
1.0.11
8 months ago
1.0.10
8 months ago
1.0.14
8 months ago
1.0.13
8 months ago
1.0.12
8 months ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago