Reporting SDK Demo as NPM package
$ npm i -S reporting-sdk-demo
Import Dashboard component where you want to use it:
import Dashboard from "reporting-sdk-demo";
Then just render it:
<Dashboard />
Prop | Description | Default value |
---|---|---|
color | Sets background color | blue |
width | Sets width | 100 |
height | Sets height | 100 |
text | Sets inner text | empty string |
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;