import * as React from "react"; import * as System from "~/components/system"; import SystemPage from "~/components/system/SystemPage"; import ViewSourceLink from "~/components/system/ViewSourceLink"; import CodeBlock from "~/components/system/CodeBlock"; export default class SystemPageStats extends React.Component { render() { return ( Stats

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.

{`import * as React from "react"; 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
{`class ExampleOne extends React.Component { render() { return ; } } class ExampleTwo extends React.Component { render() { return ; } }`}

Output

); } }