Loading placeholders. Use the base skeleton with any shape, size, and animation, or reach for ready-made presets — text, avatar, button, input, card, list, form, and table — to mirror your real layout while it loads.
Text, avatar, button & card API reference hb-skeleton Property Description Type Default [hbShape] The placeholder form. 'rectangle' | 'circle' | 'square' | 'text' 'rectangle' [hbSize] A preset size for circle, square, and text shapes. 'xs' | 'sm' | 'md' | 'lg' | 'xl' 'md' [hbWidth] / [hbHeight] Explicit CSS width and height, overriding the preset dimensions. string '' [hbRounded] Corner rounding override. 'none' | 'sm' | 'md' | 'lg' | 'full' — [hbAnimation] The shimmer effect: a pulse, a moving wave, or none. 'pulse' | 'wave' | 'none' 'pulse'
Presets — content Property Description Type Default hb-skeleton-text Lines of text. [hbLines], [hbLastWidth] (the last line), [hbSize], [hbGap]. component hbLines 3, hbLastWidth 60% hb-skeleton-avatar A circle/square/rounded avatar; [hbText] adds two lines beside it. [hbSize]. component hbShape circle hb-skeleton-button / hb-skeleton-input A button- or input-shaped placeholder. [hbSize], [hbWidth]. component — hb-skeleton-card A media area, text lines, and optional footer. [hbMedia], [hbMediaHeight], [hbLines], [hbFooter]. component hbMedia true, hbLines 3
Presets — layouts Property Description Type Default hb-skeleton-list Repeated rows with optional avatar. [hbItems], [hbAvatar], [hbLines]. component hbItems 5, hbAvatar true, hbLines 2 hb-skeleton-form Field rows and an optional submit button. [hbFields], [hbButton]. component hbFields 3, hbButton true hb-skeleton-table A grid with optional header. [hbRows], [hbColumns], [hbHeader]. component hbRows 5, hbColumns 4, hbHeader true [hbAnimation] Every preset also accepts hbAnimation, applied to all its parts. 'pulse' | 'wave' | 'none' 'pulse'
Previous ← Sidebar Next Slider →