Componentmedia0.45 KB gzipZero dependencies

Screenshot Frame

Browser-chrome screenshot frame with URL bar and controls.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add screenshot-frame

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { ScreenshotFrame } from "@/components/ui/screenshot-frame"; <ScreenshotFrame />

Source code

screenshot-frame.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxscreenshot-frame.tsx30 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface ScreenshotFrameProps extends React.HTMLAttributes<HTMLDivElement> {  url: string;  children: React.ReactNode;} /** Browser chrome mockup frame: URL address bar + window controls. */export function ScreenshotFrame({ url, children, className, ...props }: ScreenshotFrameProps) {  return (    <div className={cn("w-full overflow-hidden rounded-lg border border-border bg-card shadow-sm", className)} {...props}>      {/* URL bar */}      <div className="flex items-center gap-2 border-b border-border bg-secondary/60 px-3 py-2 animate-[walletCardIn_0.3s_ease-out_both] motion-reduce:animate-none">        <span className="flex gap-1.5" aria-hidden="true">          <span className="size-2.5 rounded-full bg-destructive/70" />

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { ScreenshotFrame } from "@/components/ui/screenshot-frame"; <ScreenshotFrame />
PropTypeDescription
urlstringConfigures url.
childrenReact.ReactNodeChild elements rendered inside the component.