Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
React Native docs
Data displayReact Native

Status dot

Mark status with a small toned dot.

Public APILumenStatusDotReact Native

Native example

Use Status dot

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

Status dot rendered in the Expo web renderer Lumen playground

Captured exampleExpo web renderer

Open interactive preview
Open the Status dot demo
tsx
import { LumenStatusDot, LumenText } from '@santi020k/lumen-react-native'
import { View } from 'react-native'

type SyncState = 'synced' | 'syncing' | 'offline'

const tones = { synced: 'success', syncing: 'brand', offline: 'danger' } as const
const labels = { synced: 'All changes saved', syncing: 'Syncing…', offline: 'Offline' }

export function SyncStatus({ state }: { state: SyncState }) {
  return (
    <View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
      <LumenStatusDot tone={tones[state]} pulse={state === 'syncing'} />
      <LumenText>{labels[state]}</LumenText>
    </View>
  )
}
React Native
A sync indicator whose dot tone follows the state and pulses while syncing, with the visible text carrying the meaning.

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

Apple / SwiftUIAndroid / Compose Web
React Native docsNative primitives