@nps.today/component-library
TypeScript icon, indicating that this package has built-in type declarations

1.3.10 • Public • Published

@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>

Readme

Keywords

none

Package Sidebar

Install

npm i @nps.today/component-library

Homepage

nps.today/

Weekly Downloads

2

Version

1.3.10

License

ISC

Unpacked Size

9.65 MB

Total Files

9

Last publish

Collaborators

  • mathiasingemann
  • nps.mra
  • nps.admin