When to use it
Use for a compact text action inside native watch scrolling containers. Keep navigation, persistence, and feedback in the application; leading content must be decorative.
Trigger a compact, full-width action on watchOS and Wear OS.
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 a compact text action inside native watch scrolling containers. Keep navigation, persistence, and feedback in the application; leading content must be decorative.
import androidx.compose.runtime.*
import com.santi020k.lumen.*
@Composable
fun WearActionExample() {
var saved by remember { mutableStateOf(false) }
LumenWearActionRow("Save session", onClick = { saved = true }, enabled = !saved)
}Reference
The primary shared and platform-specific options exposed by LumenWearActionRow.
| API | Values or type | Default | Description |
|---|---|---|---|
| label | Native localized text | Required | Names the action. |
| onClick | Action callback | Required | Runs when enabled. |
| detail | Optional native text | nil / null | Adds wrapping supporting text. |
| enabled | Boolean | true | Disables interaction and exposes disabled state. |
| leading | Optional decorative view | EmptyView / null | Adds a supporting icon. |
Native behavior
Use for a compact text action inside native watch scrolling containers. Keep navigation, persistence, and feedback in the application; leading content must be decorative.
Provides one named button target with wrapping text and an exposed disabled state.
Shared component