Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
Data displayApple

Status dot

Mark status with a small toned dot.

Public APILumenStatusDotApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.

iPhone · iOS 16+iPad · iPadOS 16+Mac · macOS 13+Apple Vision · visionOS 1+

Native example

Use Status dot

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

Status dot rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulatorView dark appearance
swift
import LumenUI
import SwiftUI

struct StatusDotExample: View {
    var body: some View {
        VStack(alignment: .leading, spacing: LumenSpacing.md) {
            HStack(spacing: LumenSpacing.sm) {
                // No label: the visible text names the status, so the dot stays decorative.
                LumenStatusDot(tone: .success, pulse: true)
                LumenText("Deploys available")
            }
            HStack(spacing: LumenSpacing.lg) {
                LumenStatusDot(tone: .warning, label: "Degraded")
                LumenStatusDot(tone: .danger, label: "Offline")
            }
        }
    }
}
Apple
A decorative pulsing success dot beside visible status text, then standalone labeled warning and danger dots.

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 NativeAndroid / Compose Web
Apple docsSwiftUI package