Empty Message

What a screen shows when it has nothing to show, with a symbol, a title, a description and actions.

import { EmptyMessage } from "@plexui/react-native"

Examples

Overview

Platforms

iOS 26Android
Native componentContent unavailable viewNone: the Plex Android empty view
LookA bare symbol, a bold title and a description, centeredA gray symbol, a Medium 20 title and a 14sp gray description, centered, over a full-width 48dp pill

API

EmptyMessage

PropTypeDefaultDescription
childrenReactNode—The parts
fill"static" | "absolute" | "none""static"static grows to fill the space it is given and centers in it; absolute covers its parent and centers; none hugs its content
size"sm" | "md""md"sm is the compact message for a panel: a small icon tile and, on iOS, a 15/20 description
align"center" | "start""center"start lines the message up at the start, for an empty state under a section heading
actionPosition"inline" | "bottom""inline"iOS: bottom sets the actions at the foot of a message of the default size that fills its space; inline under the description
titleLine{ fontSize: number; lineHeight: number }—The size and line of a title the app sets itself; the title takes it and the description's gap is measured from it
testIDstring—Test id
styleStyleProp<ViewStyle>—Style of the container

EmptyMessage.Icon

PropTypeDefaultDescription
childrenReactNode—The symbol, an icon element
color"secondary" | "danger" | "warning""secondary"Semantic color
size"sm" | "md"—The icon's own size; defaults to the message's

EmptyMessage.Title

PropTypeDefaultDescription
childrenReactNode—The title, announced as a header
color"secondary" | "danger" | "warning""secondary"danger or warning tints the title; secondary keeps the text color
styleStyleProp<TextStyle>—Style of the title, as a brand face

EmptyMessage.Description and EmptyMessage.ActionRow take children only.