Nectar UI/
Feedback
Animate Pulse • Utility PrimitivesSkeleton.
The architecture of anticipation. Skeletons improve perceived performance by providing a visual estimate of content before it loads, maintaining layout stability (CLS) and reducing cognitive friction.
import { Skeleton } from "@/components/ui/skeleton"Block-level Layout Preservation
Cumulative Layout Shift (CLS)
Skeletons are not just decorative. By enforcing dimensions (`h-4`, `w-full`) before data arrives, we prevent the UI from jumping violently when content loads. This is critical for Core Web Vitals scores.
Compositional Flexibility
The component intentionally lacks complex variants. It is a primitive designed to be composed via `className`. Use utility classes like `rounded-full` or `aspect-video` to mirror the target content's shape exactly.
DashboardCard.tsx