When to use it
Pair it with visible text, or give it a label when it stands alone.
Native example
Pair it with visible text, or give it a label when it stands alone.
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")
}
}
}Reference
The primary shared and platform-specific options exposed by LumenStatusDot.
| API | Values or type | Default | Description |
|---|---|---|---|
| tone / pulse / label | color / animated ring / accessible name | current / false / none | Pair it with visible text, or give it a label when it stands alone. |
Native behavior
Pair it with visible text, or give it a label when it stands alone.
Decorative unless labeled.
Shared component