useDelayedLoading: Skeletons
Skeletons replace content, so a flash is even more jarring than with a spinner. Here the first load is slow and shows the skeleton. Later loads come from a cache and never do.
- Ada Lovelace
- Grace Hopper
- Alan Turing
This adds the example as components/examples/use-delayed-loading/skeleton.tsx, together with the useDelayedLoading component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/use-delayed-loading-skeleton.jsonTo add only the component, follow the useDelayedLoading installation.