Dev Helpers
← Back

Table loading placeholder

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 TableLoadingPlaceholder() {
  return (
    <table aria-busy="true">
      <caption>Loading orders…</caption>
      <tbody>
        {[1, 2, 3].map((n) => (
          <tr key={n}>
            <td>Order {n}</td>
            <td>Pending</td>
          </tr>
        ))}
      </tbody>
    </table>
  );
}