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.
Wear OS availability
Add com.santi020k:lumen-compose-wear:6.0.0 to your Wear OS module and import this component from com.santi020k.lumen. Wrap content in LumenWearTheme, which defaults to dark appearance and uses LumenThemeScope for tokens, named themes, typography, shapes, and androidx.compose.material3.MaterialTheme roles. Your separate Wear Material provider remains application-owned. Wear UI primitives accept a Compose modifier with Modifier as its default.
The release plan targets this version; confirm Maven Central availability before pinning it.
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 | String | Required | Names the metric. |
| value | String | Required | Provides the formatted value. |
| detail | String? | null | Adds brief supporting context. Wear OS omits null, empty, or blank detail. |
| tone | LumenWearTone | LumenWearTone.Neutral | Applies brand, accent, success, warning, danger, or neutral 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 readable metric on watchOS and Wear OS. Keep the formatted value concise and localize the label and detail.
Shared component