Back to docs
Component

Skeleton Loader

Shimmer placeholder block for loading states.

Install

npx shadcn@latest add @native-bits/skeleton-loader

Dependencies

react-native-reanimatedreact-native-linear-gradient
Try in Sandbox
feedbackloadingmobile

Props

PropTypeDefaultDescription
widthnumber | string'100%'Skeleton width
heightnumber16Skeleton height
borderRadiusnumber8Corner radius

Usage

```tsx
import { skeleton-loader } from '@/components/native-bits/skeleton-loader'

<SkeletonLoader width="100%" height={18} borderRadius={9} />
```

Source code

Loading...