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>
);
}
















