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
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1