React Native MantineFeedback

Skeleton

Loading placeholder with pulse animation

Import: import { Skeleton } from 'react-native-mantine';

Usage

import { Skeleton, Stack } from 'react-native-mantine';

<Stack spacing={8}>
  <Skeleton height={20} />
  <Skeleton height={20} width="70%" />
  <Skeleton height={60} circle />
</Stack>

Props

PropTypeDefaultDescription
heightnumber | string120Skeleton height in pixels (number) or any valid size string. When circle is true, this determines the circle diameter
widthnumber | string"100%"Skeleton width in pixels (number) or any valid size string. Ignored when circle is true
radiusnumber | "xs" | "sm" | "md" | "lg" | "xl""sm"Key of theme.radius or any valid number to set border-radius. Ignored when circle is true
circlebooleanfalseIf true, skeleton will be rendered as a circle with equal width and height based on the height prop
animatebooleantrueControls whether to show the shimmer pulse animation effect
visiblebooleantrueIf true, shows the skeleton. If false and children are provided, shows the children instead
childrenReact.ReactNodeContent to display when visible is false. Useful for conditional loading states
styleViewStyleAdditional styles to apply to the skeleton container

Source on GitHub · npm