className- Type
string- Default
- -
- Description
- Dimensions and spacing of the pulse indicators.
Search for a command to run...
Components / Display
எலும்புக்கூடு
Skeletons are loading placeholders that mimic the shape of the content being loaded. They reduce perceived load time and prevent layout shift.
எலும்புக்கூடுகள் ஏற்றப்படும் உள்ளடக்கத்தின் வடிவத்தை பிரதிபலிக்கும் ஏற்றுதல் இடங்காட்டிகள்.
2 parts documented for implementation and review.
<div>Single animated placeholder with animate-pulse opacity animation. Uses bg-muted. Shape via className — rounded-full for avatars, rounded-md for cards, h-4 w-[200px] for text lines.
Compose multiple Skeletons with same spacing as real UI to mirror layout. For a card: skeleton avatar + 2 text lines + button. Prevents layout shift on content load.
rounded-full for avatar skeletons, rounded-md for buttons, default for text lines.w-full, w-3/4, w-1/2) for natural-looking paragraphs.classNamestring| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Dimensions and spacing of the pulse indicators. |
Matching shape and size prevents jarring layout shift when the real content loads in.
உண்மையான உள்ளடக்கம் ஏற்றப்படும்போது வடிவமைப்பு மாற்றம் தவிர்க்க Skeleton வடிவம் பொருந்த வேண்டும்.
Showing a skeleton for data that loads in under 300ms creates unnecessary visual noise and flash.
300ms-க்கும் குறைவில் ஏற்றப்படும் தரவிற்கு Skeleton காட்டுவது தேவையற்ற காட்சி குழப்பத்தை உருவாக்கும்.
Render only the skeletons that would be visible on screen — there's no need to render 100 skeletons for a long list.
திரையில் தெரியும் பகுதிக்கு மட்டுமே Skeleton காட்டவும் — 100 Skeleton-கள் தேவையில்லை.
A static gray box without the pulse animation looks broken — always use animate-pulse to signal that content is loading.
நகர்வற்ற சாம்பல் பெட்டி உடைந்தது போல் தெரியும் — animate-pulse மூலம் ஏற்றுதல் சமிக்ஞை காட்டவும்.