Stats View Source



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.


1
import * as React from "react";
2
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

1
class ExampleOne extends React.Component {
2
render() {
3
return <StatUpload size="40000000" decimal="5" />;
4
}
5
}
6
7
class ExampleTwo extends React.Component {
8
render() {
9
return <StatDownload size="40000000" />;
10
}
11
}


Output



38.14697 MB
38.15 MB


Components
Avatar GroupButtonsCard Tabs3D CardCheckboxesColorsDropdownsHover TileIconsInputsList EditorLoadersNotificationsRadiosSlidersStatsTablesTabsTagsTogglesTooltipsTypography
View source