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.


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


Output



38.14697 MB
38.15 MB
ExperiencesCreateFilecoinAddressCreateFilecoinStorageDealCreateTokenFilecoinBalancesListFilecoinDealsListFilecoinSettingsFriendsListPeersListSendAddressFilecoin

Components
Avatar GroupButtonsCard TabsCarouselCheckboxesColorsDatepickerDropdownsGlobeHover TileIconsInputsLine ChartList EditorLoadersModalsNotificationsRadiosSlidersStatsTablesTabsTogglesTooltipsTypography
View source