kevingirelli

Browser Frame

Dashboards

About

A CSS-drawn browser window frame with window dots and an address bar, used to wrap a screenshot, iframe, or dashboard preview.

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

Code

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

Usage.tsx

import { BrowserFrame } from "@/components/ui/browser-frame";

export default function BrowserFrameDemo() {
  return (
    <div className="flex w-full items-center justify-center p-8">
      <BrowserFrame
        url="harbour.example.com/dashboard"
        className="w-full max-w-2xl"
      >
        <div className="grid grid-cols-3 divide-x divide-border">
          <div className="flex flex-col items-center justify-center gap-1 p-6">
            <span className="text-2xl font-semibold">82%</span>
            <span className="text-muted-foreground text-xs">Berths booked</span>
          </div>
          <div className="flex flex-col items-center justify-center gap-1 p-6">
            <span className="text-2xl font-semibold">22 h</span>
            <span className="text-muted-foreground text-xs">Open hours</span>
          </div>
          <div className="flex flex-col items-center justify-center gap-1 p-6">
            <span className="text-2xl font-semibold">7</span>
            <span className="text-muted-foreground text-xs">Waiting list</span>
          </div>
        </div>
      </BrowserFrame>
    </div>
  );
}

More by kevingirelli

View all
  • Aurora

    Aurora

    131
  • QR Code

    QR Code

    128
  • FAQ Section

    FAQ Section

    79
  • Animated Border

    Animated Border

    73
  • Warp Gradient

    Warp Gradient

    63
  • Corner Frame

    Corner Frame

    59
  • Wave Text

    Wave Text

    56
  • Spotlight

    Spotlight

    47

More in Dashboards

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Stat Card

    Stat Card

    46
  • Sidebar

    Sidebar

    392
  • Chart Component

    Chart Component

    11
  • SaaS Template

    SaaS Template

    2.7K
  • Fitness Bento Grid

    Fitness Bento Grid

    42
  • Financial Bento Grid

    Financial Bento Grid

    129
  • Course Design Cards

    Course Design Cards

    1.3K