spinner
A rotating icon that tells the user something is loading, without showing what.
In more detail
Spinners suit short, unpredictable waits such as a button that is submitting. For page content, skeleton screens usually feel faster because they preview the layout and avoid layout shift.
Related terms
- skeleton screen — A grey outline of the content that is about to load, shaped like the real layout, shown instead of a spinner.
- isPending — A true or false value from hooks such as useActionState and useTransition that is true while an action is still running.
Taught in
- Server Components: Async Execution & Constraints — Next.js 15 & Modern App Router Architecture
- Loading UI: Instant Loading States with loading.tsx — Next.js 15 & Modern App Router Architecture
- Action State: useActionState & Optimistic Form UI — Next.js 15 & Modern App Router Architecture