amankaushik481

Offline Banner

Component

About

A full-width amber status banner that tells users the app is offline, with a Wi-Fi-off icon, a note that changes will sync later, and an optional Retry button.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Offline Banner to your project and fits it to your theme.

Code

How Offline Banner is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import * as React from "react";
import { OfflineBanner } from "@/components/ui/offline-banner";

export default function OfflineBannerDemo() {
  return (
    <div className="w-full max-w-2xl mx-auto">
      <OfflineBanner onRetry={() => {}} />
    </div>
  );
}

Dependencies

More by amankaushik481

View all
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2