The System Stats component is used to show a system stat with an upload or a download icon.
Imports
Import React and the StatUpload and/or the StatDownload Components.
0
import * as React from "react";
1
import { StatUpload, StatDownload } from "slate-react-system";
Usage
Delcare the StatUpload and/or the StatDownload components. Decimal prop is optional as it defaults to 2
0
class ExampleOne extends React.Component {
2
return <StatUpload size="40000000" decimal="5" />;
6
class ExampleTwo extends React.Component {
8
return <StatDownload size="40000000" />;
Output