Dev Helpers
← Back

Article loading skeleton

Place this file at app/studio/loading.tsx in an App Router project.

Open this example in the interactive library

Source code

// app/studio/loading.tsx

export default function ArticleLoadingSkeleton() {
  return (
    <article aria-busy="true" aria-label="Loading article">
      <h1>Loading article…</h1>
      {[85, 100, 65].map((w) => (
        <div
          key={w}
          aria-hidden="true"
          style={{ width: w + "%", height: 12, background: "#ccc", marginBlock: 10 }}
        />
      ))}
    </article>
  );
}