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
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | "You're offline" | Heading copy. |
description | string | — | Supporting copy shown under the title. |
onRetry | () => void | — | Renders a default retry button when action is omitted. |
retryLabel | string | 'Retry' | Label for the default retry button. |
icon | ReactNode | — | Icon or illustration rendered above the title. |
action | ReactNode | — | Custom action, overriding the onRetry button. |
style | StyleProp<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.