Skip to main content Home
About About the Design SystemRoadmap
Get started OverviewDesignersDevelopers
Foundations OverviewColorGridIconographyInteractionsSpacingTypography
Tokens Overview Global colorbox shadowTypographyborderopacityspacelengthIconBreakpointsMedia Queries
Elements All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Navigation (primary) Navigation (secondary) Pagination PopoverPlanned Progress stepper Scheme toggle Site status Skeleton Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed
Theming OverviewColor PalettesCustomizingDevelopers
Patterns All PatternsCardFilterFormLink with iconLogo wallSearch barSticky bannerSticky cardTabsTagTile
Personalization All Personalization PatternsAnnouncement
Accessibility FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers
Design/code status Release notes Get support

Skeleton

OverviewStyleGuidelinesCodeAccessibilityDemos
ImportingUsagerh-skeletonImportingUsagerh-skeleton

Users should remove <rh-skeleton> elements from the DOM once content is loaded. See the Accessibility for more information.

Importing

Add rh-skeleton to your page with this import statement:

<script type="module">
  import '@rhds/elements/rh-skeleton/rh-skeleton.js';
</script>
Copy to Clipboard Wrap lines

To learn more about installing RHDS elements on your site using an import map read our getting started docs.

Lightdom CSS

This element requires you to load "Lightdom CSS" stylesheets for styling deeply slotted elements.

Note

Replace /path/to/ with path to the CSS file, whether local or CDN.

<link rel="stylesheet" href="/path/to/rh-skeleton/rh-skeleton-lightdom.css">

Usage

rh-skeleton

A skeleton displays an animated placeholder that mimics the structure and layout of actual content while it loads. It gives users a preview of what's coming and reduces perceived loading time.

Slots 1
Slot Name Summary Description

Place a visually hidden description of what is being loaded for assistive technologies.

Attributes 2
Attribute DOM Property Description Type Default
type type

What shape the skeleton should be. Defaults to body-copy.

'body-copy' | 'heading' | 'circle' | 'square' | 'rectangle'
unknown
size size

What size the skeleton should be. Defaults to md. The size attribute is not valid on circle, square, or rectangle skeletons.

'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'
unknown
Methods 0
None
Events 0
None
CSS Shadow Parts 0
None
CSS Custom Properties 0
None
Design Tokens 1
Token Copy
--rh-length-4xs
Full CSS Variable Permalink to this token
© 2025 Red Hat Deploys by Netlify