Skip to content

Metric API

API reference docs for the Stash Metric component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import Metric from '@leaflink/stash/Metric.vue';

Props

NameTypeDefaultDescription
labelstring '-' The label for the metric. Appears above the value.
valuenumber | string-The primary text that will show in the metric.
accentColorStashCommonColorteal-500The accent color for the metric. Defaults to `teal`. Currently only used when the variant = `accent`.
sizeMetricSizestandardControls the size of the metric via text size adjustments.
variantMetricVariantnakedThe variant of the metric. Defaults to `naked`.

Slots

NameDescription
secondarySupplementary information like a date, status, hint text, or secondary label.

Events

None