0.1.13 • Published 4 months ago
int2_support_ui v0.1.13
Support UI
React library for Intellectus data team
Warning
This library is continuously being developed and maintained.🛠️🛠️🛠️
Installation
using npm:
$ npm install int2_support_ui
Usage
import SupportUI from "int2_support_ui";
const TestComponent = () => {
return <SupportUI.SearchInput />
}
const TestThroughput = () => {
const [inputData, setInputData] = useState<NodeDataType>([]);
const inputDataChangeInterval = () => {
setInterval(async() => {
const data = await getData(); // replace to your GET api or something
setInputData(data);
setCount(cur => (cur + 1) % 60)
}, 1000);
};
useEffect(() => inputDataChangeInterval(), []);
return (
<SupportUI.Throughput
maxLength={5}
inputData={inputData}
graphWidth={500}
graphHeight={50}
/>
)
}
Contributing
See the Contributing Guide for more details on contributing.
Roadmap
See the Roadmap for more details on roadmap.