npx gluestack-ui add skeletonimport { Skeleton, SkeletonText } from '@/components/ui/skeleton';
export default () => (
<Box className="gap-2">
<Skeleton variant="rounded" className="h-32 w-64" />
<SkeletonText className="h-4 w-64 " />
</Box>
)
| Platform | Output |
|---|---|
Web | <div /> |
Native | <View /> |
| Prop | Type | Default | Description |
|---|---|---|---|
variant | rounded | sharp | circular | rounded | Shape of the skeleton component |
startColor | string | bg-background-200 | Sets the color of the skeleton animation |
isLoaded | bool | false | When true, the skeleton content will be displayed |
speed | number | 2 | Sets the animation speed of the skeleton component |
| Platform | Output |
|---|---|
Web | <div /> |
Native | <View /> |
| Prop | Type | Default | Description |
|---|---|---|---|
lines | number | - | Number of lines in text skeleton |
startColor | string | bg-background-200 | Sets the color of the skeleton animation |
isLoaded | bool | false | When true, the skeleton content will be displayed |
speed | number | 2 | Sets the animation speed of the skeleton component |
gap | number | - | Sets the gap between the text skeletons |