Skeletons that match your markup.

A loading state for Nuxt and Vue that you never have to build. It lays out your real markup invisibly and draws a bar over every line of text and a block over every image, before JavaScript loads.
GET /products/24loading
Loading product

Click the card to load another product.

Built for real screens

Real requests to a live API. Press Reload on any of them to see the loading state again.
GET /users/1 + /postsloading
Loading profile
Loading posts
GET /commentsloading
Loading messages
GET /carts + /usersloading
Loading orders

A loading state you don't maintain

Change the card and the skeleton changes with it, because it is the card.
  • Shaped by your markup
    A bar for every line of text, a block for every image and button. No separate loading template to keep in sync.
  • Before JavaScript
    One script in the head draws the skeleton before the first paint, ahead of the app itself.
  • No jump on reload
    The shape of the last content is remembered and applied on the next visit at the same window width.
  • Understands useFetch and useQuery
    Pass the result to :of and loading, empty responses and errors are handled. Slot data stays typed.
  • Remembers geometry only
    No text, markup or attributes in storage. Turn memory off, or clear it on sign-out.
  • Styled with plain CSS
    Color, radius and animation are CSS variables, so dark mode works like everything else.
  • Nuxt and Vue
    A module for Nuxt, a plugin for Vue with Vite. The shimmer runs on the compositor and stays off the main thread.
  • Accessible
    Skeletons are hidden from screen readers, loading is announced, and reduced motion is respected.
  • Dive into the docs now

All the code it takes

Pass the useFetch result to :of and describe the shape with sample. The component handles loading, empty responses and errors.
<script setup lang="ts">
const posts = useFetch<Posts>('https://dummyjson.com/posts?limit=3', {
  lazy: true,
  server: false,
})

const sample: Posts = {
  posts: [1, 2, 3].map(id => ({
    id,
    title: 'A title of about this length',
    body: 'Two lines of text, about as long as the real thing.',
  })),
}
</script>

<template>
  <Skeleton :of="posts" :sample>
    <template #default="{ data }">
      <article v-for="post in data.posts" :key="post.id">
        <h3>{{ post.title }}</h3>

        <p>{{ post.body }}</p>
      </article>
    </template>

    <template #empty>No posts yet</template>

    <template #error="{ error }">{{ error }}</template>
  </Skeleton>
</template>
GET /posts?limit=3loading

Ready when your data isn't

Add the module, wrap your markup, done. Everything else is optional.