Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
Data displayReact Native

Stat

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

Public APILumenStatReact Native

Native example

Use Stat

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

View verified React Native runtime capture
Stat rendered in the Expo web renderer Lumen playground
Verified runtime captureExpo web renderer
tsx
<LumenStat
  label="Open windows"
  value="12"
  detail="Across 3 workspaces"
  tone="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.
detailstringundefinedAdds supporting context.
graphicReactNodeundefinedAdds 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

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives