Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
Data displayAndroid

Status dot

Mark status with a small toned dot.

Public APILumenStatusDotAndroid / Compose

Native example

Use Status dot

Pair it with visible text, or give it a label when it stands alone.

Status dot rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import com.santi020k.lumen.*

@Composable
fun SyncStatus() {
    var live by remember { mutableStateOf(true) }
    Row(horizontalArrangement = Arrangement.spacedBy(LumenSpacing.Md), verticalAlignment = Alignment.CenterVertically) {
        LumenStatusDot(tone = if (live) LumenStatusDotTone.Success else LumenStatusDotTone.Warning, pulse = live)
        LumenText(if (live) "Syncing live" else "Sync paused")
        LumenButton(onClick = { live = !live }, intent = LumenButtonIntent.Secondary) {
            LumenText(if (live) "Pause" else "Resume")
        }
    }
}
Android
A decorative status dot beside visible status text that pulses while sync is live and turns amber when paused.

Reference

Public API

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

APIValues or typeDefaultDescription
tone / pulse / labelcolor / animated ring / accessible namecurrent / false / nonePair it with visible text, or give it a label when it stands alone.

Native behavior

Design and accessibility

When to use it

Pair it with visible text, or give it a label when it stands alone.

Accessibility

Decorative unless labeled.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module