← ui-lab

Retry Loader

An async region that loads, fails, and recovers on retry. It starts busy, surfaces a failure as an alert with a retry button, and on retry loads again and shows the content. It completes the async story alongside Async Content (static states) and Live Loader (a timed success) — here verified deterministically with a controlled clock.

Preview

Loading…

The preview loads for a moment, fails, then recovers when you press Retry.

Installation

npx shadcn@latest add https://ui.publictheta.com/r/retry-loader.json

Conformance

This component conforms to the @publictheta/ui-spec retry-loader specification. Run the suite against any implementation with pnpm conformance.