Browser Mockup

Motion

Browser Mockup is a React browser window frame with traffic lights, an address bar and optional tabs around a screenshot or children, plus a matching PhoneMockup.

src/registry/premium/browser-mockup.tsx/r/browser-mockup.json

Installation#

bash
npx shadcn@latest add @minidev/browser-mockup

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/browser-mockup.json

Usage#

tsx
import { BrowserMockup } from "@/components/ui/browser-mockup"

export function Example() {
  return <BrowserMockup />
}

API reference#

BrowserMockup props
PropTypeDefault
urlstring"https://app.lumen.dev/overview"
tabsstring[][]
activeTabnumber0
srcstring-
altstring""
appearance"auto" | "dark""auto"
phoneboolean-
childrenReact.ReactNode-
classNamestring-

Dependencies#

npm

lucide-react

Built from

No other MiniDev files
All Landing page sections for React and Tailwind