NexusUI

Status Morph

Component

About

An iPhone-style status bar that takes itself apart to connect: the battery rounds into a ring, the signal bars ride its gap as dots, then it closes. Follows your shadcn theme in light and dark; onStatusChange drives your own connect logic. More at nexus-ui.com

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

Code

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

Usage.tsx

import { useState } from "react";
import { StatusMorph, type StatusMorphStatus } from "@/components/ui/status-morph";

const COPY: Record<StatusMorphStatus, string> = {
  disconnected: "Tap the status bar to join the network.",
  connecting: "Looking for Studio 5G…",
  connected: "Online. Tap again to disconnect.",
};

export default function DefaultDemo() {
  const [status, setStatus] = useState<StatusMorphStatus>("disconnected");
  return (
    <div className="flex min-h-screen w-full flex-col items-center justify-center gap-5 bg-background p-6">
      <StatusMorph network="Studio 5G" onStatusChange={setStatus} />
      <p className="text-sm text-muted-foreground" aria-live="polite">
        {COPY[status]}
      </p>
    </div>
  );
}

Dependencies

More by NexusUI

View all
  • Circular Carousel

    Circular Carousel

    1.3K
  • Images Badge

    Images Badge

    1K
  • Chat Messages

    Chat Messages

    366
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    175
  • Infinite Moving Cards

    Infinite Moving Cards

    173
  • Shooting Stars Grid

    Shooting Stars Grid

    160
  • Pixel Atlas

    Pixel Atlas

    133
  • Logo Clouds

    Logo Clouds

    119