Device Frame

Wraps any React UI in a phone with notch, status bar and side buttons, or a browser window with a URL bar. Built from theme tokens for light and dark.

src/registry/blocks/device-frame.tsx/r/device-frame.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/device-frame.json

Usage#

tsx
import { DeviceFrame } from "@/components/ui/device-frame"

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

API reference#

DeviceFrame props
PropTypeDefault
device"phone" | "browser"-
urlstring-
timestring-
childrenReact.ReactNode-
classNamestring-
screenClassNamestring-

Dependencies#

npm

lucide-react

Built from

No other MiniDev files
All media and upload components