MacBook Pro

PreviousNext

Interactive MacBook Pro mockup component with customizable screen content.

Installation

pnpm dlx shadcn@latest add "https://ui.datthu.site/r/macbook-pro.json"

Usage

import { MacbookPro } from "@/components/ui/macbook-pro"
<MacbookPro
  src="https://images.unsplash.com/photo-1502790671504-542ad42d5189?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fG1hY2Jvb2slMjBwcm8lMjB3YWxscGFwZXJ8ZW58MHx8MHx8fDA%3D"
  width={650}
  height={400}
/>

Props

PropTypeDefaultDescription
srcstring-The source of the image to display on the screen
widthnumber650The width of the MacBook Pro mockup
heightnumber400The height of the MacBook Pro mockup
classNamestring-Additional CSS classes for styling