Loading region

surfacesNewFreeMIT

A box that handles waiting: nothing for 300 ms, then a skeleton when the layout is known or a spinner when it is not, shown for at least 500 ms; keeps old data and shows a small spinner on reload; busy and status text for screen readers; error and empty at the same height.

npx shadcn@latest add https://mikkelmanniche.dk/lab/r/loading-region.json
Width

Preview

The preview could not load.

Live demo in the dark theme.

Details

Files

  • loading-region.tsx