Skeleton
Loading placeholders in the shape of the content they stand in for, a block or a circle.
import { Skeleton } from "@plexui/react-native"Examples
Overview
Platforms
| iOS 26 | Android | |
|---|---|---|
| Native component | Redacted placeholder (.redacted) | None: Material 3's loading indicator is a different component |
| Look | Gray blocks in the shape of the content, pulsing | Light gray blocks with 4dp corners and one shimmer down the screen across all of them |
Skeleton.Text redacts a run of words inside a Text: a still band of the skeleton's color behind each line the words take, as wide as they are, the words unseen. It does not pulse: hidden words are kept back, not loading. Give it stand-in words of the length, never the hidden ones, and give the paragraph an accessibilityLabel that says what is hidden, as a phone reads a paragraph as one string with its nested runs (a browser leaves the run unread): <Text accessibilityLabel="Total hidden a month">Total <Skeleton.Text>$0,000.00</Skeleton.Text> a month</Text>.
API
| Prop | Type | Default | Description |
|---|---|---|---|
circle | boolean | false | A circle as wide as it is tall, the place of an avatar |
width | DimensionValue | "100%" | Width in points or as a percentage; a circle without one is as wide as its height |
height | DimensionValue | 16 | Height in points or as a percentage |
animated | boolean | true | false stands still: a redacted placeholder, as iOS draws hidden text, for content kept back rather than loading, which a pulse or a shimmer would read as |
testID | string | — | Test id |
style | StyleProp<ViewStyle> | — | Style of the block, such as a larger radius |