@nps.today/component-library
React component library for displaying your nps.today data.
Documentation
This component library use storybook. Go to ui.nps.today to read more about each component avalible, and how to customize each component for your needs.
React
Installation
npm install @nps.today/component-library
Usage
// ExampleComponent.jsx
import { NpsScoreGauge } from "@nps.today/component-library";
return <NpsScoreGauge score={100} />;
CDN
Full component library
<!--index.html-->
<head>
<script type="module" src="https://unpkg.com/@nps.today/component-library@1.2.0/bundled/index.esm.min.js"></script>
</head>
<body>
<nps-score-gauge score="100"></nps-score-gauge>
</body>
Single component
<!--index.html-->
<head>
<script
type="module"
src="https://unpkg.com/@nps.today/component-library@1.2.0/bundled/NpsScoreGauge/index.esm.min.js"
></script>
</head>
<body>
<nps-score-gauge score="100" arcsLength="0.5,0.3,0.2"></nps-score-gauge>
</body>