Open this example in the interactive library
Source code
// app/studio/loading.tsx
export default function MediaGalleryLoadingGrid() {
return (
<section
aria-label="Loading images"
aria-busy="true"
style={{
display: "grid",
gridTemplateColumns: "repeat(auto-fit,minmax(min(100%,9rem),1fr))",
gap: 8,
}}
>
{[1, 2, 3, 4].map((n) => (
<div key={n} style={{ aspectRatio: "1", background: "#ddd" }} />
))}
</section>
);
}
