When to use it
Use for one high-priority value with a short label. Avoid dashboard grids that overload small round screens.
Present one at-a-glance wearable label, value, and optional detail.
Native example
Use for one high-priority value with a short label. Avoid dashboard grids that overload small round screens.
@Composable
fun DurationMetric(elapsed: String) {
LumenWearMetric(label = "Duration", value = elapsed, tone = LumenWearTone.Brand)
}Reference
The primary shared and platform-specific options exposed by LumenWearMetric.
| API | Values or type | Default | Description |
|---|---|---|---|
| label | Native localized text | Required | Names the metric. |
| value | String | Required | Provides the formatted value. |
| detail | Optional native localized text | nil | Adds brief supporting context. |
| tone | brand · accent · success · warning · danger · neutral | neutral | Applies semantic value color. |
Native behavior
Use for one high-priority value with a short label. Avoid dashboard grids that overload small round screens.
Combines label, value, and optional detail into one concise readable metric.
Shared component