MindeesUI
ComponentsStates

OfflineState

A centered "no internet" screen in a warning tone with a built-in retry button via onRetry.

OfflineState is a centered layout for lost connectivity. Its title defaults to You're offline in the warning tone. Passing onRetry renders a neutral retry button automatically; supply your own action to override it.

Import

import { OfflineState } from '@mindees/ui';

Usage

<OfflineState description="Check your connection and try again." onRetry={reconnect} />

Props

PropTypeDefaultDescription
titlestring"You're offline"Heading copy.
descriptionstringSupporting copy shown under the title.
onRetry() => voidRenders a default retry button when action is omitted.
retryLabelstring'Retry'Label for the default retry button.
iconReactNodeIcon or illustration rendered above the title.
actionReactNodeCustom action, overriding the onRetry button.
styleStyleProp<ViewStyle>Style applied to the container.

Inherits the remaining ViewProps (except style).

Accessibility

The container uses accessibilityRole="summary" so the offline message reads as a single status. The default retry button is a standard Button with its own accessibility.

On this page