Getting Started
Foundations
Components
Search for a command to run...
Skeletons provide visual feedback during loading states by displaying placeholder shapes that mimic the structure of the content being loaded. They help reduce perceived loading time and improve the user experience by giving users a preview of what's coming and maintaining visual stability during data fetching. Skeletons create a smoother, more polished loading experience compared to blank spaces or generic spinners, especially for content-heavy interfaces.
Use skeletons when loading content that has a predictable structure, such as lists, cards, or profiles. They work best when they closely match the shape and layout of the actual content, helping users mentally prepare for what they're about to see. Skeletons should be replaced with real content as quickly as possible and can be combined with subtle animations to indicate ongoing loading activity.
import { Skeleton } from "@strongtie/design-system/skeleton"<Skeleton>| Prop | Type | Default | Description |
|---|---|---|---|
animation | none | pulse | shimmer | wave | pulse |
Pulse
Shimmer
Wave
None
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
skeletonEnsure proper accessibility attributes are added when implementing this component.