<dy-statistic>

A component for displaying statistical data with support for various data types including bandwidth, traffic, decimal numbers, percentages, durations, and currency. It can show trends by comparing current and previous values, and supports customizable icons and loading states.

Example

API

Shadow DOM; Extends GemElement

Instance Properties

Property(Attribute) Reactive Type Description
neutral(neutral) Yes StatisticNeutral
type(type) Yes StatisticType
text(text) Yes string @deprecated
header(header) Yes string
icon Yes string | Element | DocumentFragment
loading(loading) Yes boolean
value(value) Yes number
prevValue(prev-value) Yes number

Other

Type Value
Slot header