229
Offline empty-state art: a loose plug sways beside its socket and sparks now and then, until Reconnect pushes it home with a click and the status light turns green.
akaoffline·empty state·connection
Run this in any project set up for the shadcn CLI. It copies the Unplugged source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/unplugged.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { Unplugged } from "@/components/unplugged";
export default function Page() {
return <Unplugged />;
}A free React illustration in the Empty States collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Unplugged source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| status | UnpluggedStatus | — |
| onReconnect | () => void | — |
| title | string | "You're offline" |
| description | string | "Your edits are saved on this device and will sync once you're back." |
| onlineTitle | string | "You're back online" |
| onlineDescription | string | "All 12 changes synced. Pick up right where you left off." |
| actionLabel | string | "Reconnect" |
| hue | UnpluggedHue | "sky" |
| className | string | — |