Skip to content

KStatistics

Display statistics.

Install

bash
pnpm add @ikun-ui/statistics
bash
yarn add @ikun-ui/statistics
bash
npm install @ikun-ui/statistics

Basic usage

With Card

Card usage display, can be freely combined.

Statistics Props

NameTypeDefaultDescription
decimalSeparatorstring'.'Setting the decimal point.
groupSeparatorstring','Sets the thousandth identifier.
precisionnumber0numerical precision.
formatter((value: number) => string | number)-Custom numerical presentation.
valuenumber0Numerical content.
prefixstring-Sets the prefix of a number.
suffixstring-Sets the suffix of a number.
titlestring-Numeric titles
valueStylestring-Styles numeric values
clsstring-Additional class for component
attrsany{}Additional attributes

Statistics Slots

NameDescription
prefixNumeric prefix.
titleNumeric titles.
suffixSuffixes for numeric values.

MIT Licensed