components#InfoBox JavaScript Examples

The following examples show how to use components#InfoBox. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Dashboard.js    From paper-and-ink with MIT License 5 votes vote down vote up
Dashboard = () => {
  const classes = useStyles();

  return (
    <div className={classes.root}>
      <Grid container spacing={4}>
        <Grid item lg={3} sm={6} xl={3} xs={12}>
          <InfoBox
            title="Sales Today"
            value="1.500"
            differenceValue="+20%"
            caption=" Since last week"
          />
        </Grid>
        <Grid item lg={3} sm={6} xl={3} xs={12}>
          <InfoBox
            title="Visitors"
            value="200.000"
            differenceValue="-10%"
            caption=" Since last week"
          />
        </Grid>
        <Grid item lg={3} sm={6} xl={3} xs={12}>
          <InfoBox
            title="Total Earnings"
            value="$ 24.300"
            differenceValue="+12%"
            caption=" Since last month"
          />
        </Grid>
        <Grid item lg={3} sm={6} xl={3} xs={12}>
          <InfoBox
            title="Pending Orders"
            value="4"
            differenceValue="-7%"
            caption=" Since last week"
          />
        </Grid>
        <Grid item lg={8} md={12} xl={9} xs={12}>
          <Widget title="Total revenue">
            <SimpleLineChart />
          </Widget>
        </Grid>
        <Grid item lg={4} md={6} xl={3} xs={12}>
          <Widget title="Sales by brand">
            <SimpleRandarChart />
          </Widget>
        </Grid>
        <Grid item lg={4} md={6} xl={3} xs={12}>
          <Widget title="Mobile / Desktop">
            <SimpleBarChart />
          </Widget>
        </Grid>
        <Grid item lg={8} md={12} xl={9} xs={12}>
          <Widget title="Products">
            <SimpleTable />
          </Widget>
        </Grid>
      </Grid>
    </div>
  );
}