Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
Data displayAndroid

Stat

Display a compact product metric with semantic tone and optional supporting context.

Public APILumenStatAndroid / Compose

Native example

Use Stat

Use for a compact product metric. Avoid decorative dashboard numbers that do not support a decision or task.

Stat rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenStat(
    label = "Open windows",
    value = "12",
    detail = "Across 3 workspaces",
    tone = LumenMetricTone.Accent
)

Reference

Public API

The primary shared and platform-specific options exposed by LumenStat.

APIValues or typeDefaultDescription
labelStringRequiredNames the metric.
valueStringRequiredProvides the formatted metric value.
detailString?nullAdds supporting context.
graphic(@Composable () -> Unit)?nullAdds an optional semantic graphic.
toneneutral · brand · accent · success · warning · dangerbrandSelects semantic emphasis.

Native behavior

Design and accessibility

When to use it

Use for a compact product metric. Avoid decorative dashboard numbers that do not support a decision or task.

Accessibility

Metric content is combined into a concise readable unit. The value must remain meaningful without relying on color or icon alone.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module