Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Custom Inputs
Select
Components
Components
78
Micro Charts
Navigation
Libraries
Content Editor
Data View
Form Builder
Headless Editor
Image Designer
Kanban Board
PDF Builder
PDF Signer
PDF Viewer
Video Player
GitHub repositoryGitHub starsGitHub forksNgStarter UI npm versionNgStarter UI npm downloads per month

Skeleton

Skeleton is a visual placeholder block for loading content when the final layout is already known. Use it to preserve layout while cards, lists, table rows, dashboard widgets, chart areas, avatars, text lines, or media blocks are loading.

Use it for:
  • Repeating the approximate shape and size of the UI that will replace it.
  • Sizing placeholders with TailwindCSS utilities such as h-*, w-*, and size-*.
  • Using roundedFull for circular placeholders such as avatars.

Do not use Skeleton for unknown long operations, global route loading, blocking a local section, empty results, image fallback after load failure, or status text. Use ProgressBar, PageLoadingBar, ScreenLoader, BlockLoader, EmptyState, or ImagePlaceholder when those match the state better.

The NgStarter Angular Skeleton components preserve layout while content is loading. Import Skeleton, SkeletonCircle, and SkeletonRectangle from @ngstarter-ui/components/skeleton for text lines, avatars, cards, and media blocks.

Basic Skeleton

Use Skeleton blocks to approximate the loaded layout with TailwindCSS size and layout utilities. Use ngs-skeleton-circle with a size-* class for avatars and icons, and ngs-skeleton-rectangle with h-* and w-* classes for cards and media. All variants share the same loading animation and theme colors. Rectangular corners follow the theme radius: 1rem in default and 0.25rem in chalk. Circle placeholders remain fully round in both themes.