Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Anatomy
  • Examples
  • Subscriptions
  • Revenue and uptime
  • Traffic and cache
  • Recommendations
  • Usage boundaries
  • API reference

Data

Metric

Displays a key metric with label, tabular numeric value, and description slots.

idle

Usage

import {
	Metric,
	MetricDescription,
	MetricLabel,
	MetricValue,
} from "@mizen-labs/ui";

Anatomy

The parts and how they nest, taken from the preview above.

<Metric>
	<MetricLabel />
	<MetricValue />
	<MetricDescription />
</Metric>

Examples

Subscriptions

Revenue and uptime

Traffic and cache

Recommendations

GuidancePractice
Do

Pair the value with its unit and reporting period. Explain the comparison or source in the description.

Usage boundaries

GuidanceBoundary
Scope

The component presents values. Calculations, rounding policy, and freshness belong to the application.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
MetricMetricProps—Root container for metric displays with a fixed div semantic host.
MetricLabelMetricLabelProps—Label slot describing the metric with a fixed div semantic host.
MetricValueMetricValueProps—Value slot with tabular numeric typography and a fixed div semantic host.
MetricDescriptionMetricDescriptionProps—Description slot for supporting copy with a fixed div semantic host.
MetricDeltaMetricDeltaPropsgood: "up", locale: "en-US"Change chip for a fractional value (0.16 is +16%). Green when the change moves in the good direction, red when it moves against it, neutral at zero.
PreviousListNextOverflow List
Active subscriptions
14,820
Active paid organizations in this billing period.
Active subscriptions
14,820
Active paid organizations in current billing period.
Monthly recurring revenue
$84,250
Total invoiced revenue across all subscription tiers.
Service availability
99.98%
Rolling 90-day system uptime across production clusters.
API request volume
4,821,090
+14.2% Increased from previous 30-day window.
Cache hit ratio
98.7%
Monitored via query edge.cache.hit_ratio across all regions.