Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Latest commit

 

History

History
62 lines (51 loc) · 1.18 KB

File metadata and controls

62 lines (51 loc) · 1.18 KB

import SEO from '../components/SEO'

Stat

The Stat component is used to display a single statistic.

Import

import {
  CStat,
  CStatLabel,
  CStatNumber,
  CStatHelpText,
  CStatArrow,
  CStatGroup
} from '@chakra-ui/vue'

Usage

<c-stat>
  <c-stat-label>Collected Fees</c-stat-label>
  <c-stat-number>$500.00</c-stat-number>
  <c-stat-helper-text>Feb 12 - Feb 28</c-stat-helper-text>
</c-stat>

Stat with Indicator

<c-stat-group>
  <c-stat>
    <c-stat-label>Sent</c-stat-label>
    <c-stat-number>380,610</c-stat-number>
    <c-stat-helper-text>
      <c-stat-arrow type="increase" />
      30.60%
    </c-stat-helper-text>
  </c-stat>
  <c-stat>
    <c-stat-label>Clicked</c-stat-label>
    <c-stat-number>45</c-stat-number>
    <c-stat-helper-text>
      <c-stat-arrow type="decrease" />
      -5.20%
    </c-stat-helper-text>
  </c-stat>
</c-stat-group>

Props

  • CStatLabel, CStatHelperText, CStatNumber composes CText component
  • CStatArrow composes CIcon component
  • CStat, CStatGroup composes CBox component