Active theme set to LightDarkLight high contrastDark high contrast and saved in preferences.
Copied to clipboard.
Error submitting your feedback! Please try again.

SkeletonNew

Skeletons are used to provide a low fidelity representation of content before it appears in a view. This improves the perceived loading time for our users.

Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
View RTL
<div class="skeleton-overview" aria-busy="true">
<header>
<nord-skeleton></nord-skeleton>
<nord-skeleton></nord-skeleton>
</header>
<nord-skeleton></nord-skeleton>
<nord-skeleton></nord-skeleton>
<nord-skeleton></nord-skeleton>
<nord-visually-hidden>Loading</nord-visually-hidden>
</div>

<style>
.skeleton-overview header {
display: flex;
align-items: center;
margin-block-end: var(--n-space-s);
}
.skeleton-overview header nord-skeleton:last-child {
flex: 0 0 auto;
inline-size: 30%;
}
.skeleton-overview nord-skeleton {
margin-bottom: var(--n-space-m);
}
.skeleton-overview nord-skeleton:nth-child(1) {
inline-size: 3rem;
block-size: 3rem;
margin-inline-end: var(--n-space-m);
}
.skeleton-overview nord-skeleton:nth-child(3) {
inline-size: 90%;
}
.skeleton-overview nord-skeleton:nth-child(4) {
inline-size: 80%;
}
</style>

Properties

PropertyAttributeDescriptionTypeDefault
effecteffect

Determines which animation effect the skeleton will use.

"pulse" | "sheen" | "none""none"

CSS Properties

CSS Custom Properties provide more fine grain control over component presentation. We advise utilizing existing properties on the component before using these.

PropertyDescriptionDefault
--n-skeleton-border-radius

Controls how rounded the corners are, using border radius tokens.

var(--n-border-radius)
--n-skeleton-color

Controls the main color of the skeleton, using our color tokens.

var(--n-color-border)
--n-skeleton-sheen-color

Controls the sheen color of the skeleton, using our color tokens.

var(--n-color-border-strong)

Usage #

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do #

  • Use skeleton component for dynamic content only.
  • Use to give the user an indication of what the page layout will be like once loaded.
  • Mimick the actual layout using multiple Skeleton components.
  • Use aria-busy="true" to indicate which area on the screen is currently loading and remove it or set it to false once loaded.

Don’t #

  • Don’t use Skeleton component for static content.
  • Don’t show placeholder content after Skeleton disappears that will change when the page fully loads.

Integration

For integration guidelines, please see Web Components documentation. This documentation explains how to implement and use Nord Web Components across different technologies such as Vue.js, React, or Vanilla JavaScript.

Integration Guidelines

Localization

Nord provides a lightweight solution for localizing its components. Not all components need localizing, as for the most part snippets of text are set per instance. For full localization guidelines, please see Localization documentation.

Localization Guidelines

Troubleshooting

If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.


Was this page helpful?

YesNo
Send feedback

We use this feedback to improve our documentation.