Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

reporting-sdk-demo

herbowicz82ISC1.8.3

reporting sdk demo

reporting, sdk, demo

readme

reporting-sdk-demo

GitHub package.json version npm (tag) install size

Reporting SDK Demo as NPM package

Install

$ npm i -S reporting-sdk-demo

Usage

Import Dashboard component where you want to use it:

import Dashboard from "reporting-sdk-demo";

Then just render it:

<Dashboard />

Props

Prop Description Default value
color Sets background color blue
width Sets width 100
height Sets height 100
text Sets inner text empty string

Example

import React, { Component } from "react";
import Dashboard from "reporting-sdk-demo";

class App extends Component {
  render() {
    return (
        <Dashboard height={150} color="red" text="Hello World!" />
    );
  }
}

export default App;