Skip to Content

Phone

A responsive phone frame for screenshots, videos and other content, with light and dark finishes, an optional camera island and glass browser chrome when an address is supplied.

Installation

pnpm dlx shadcn@latest add @01orbital/phone

Usage

import { Phone } from "@/components/media/phone"

export default function PhoneDemo() {
  return <Phone address="https://01orbital.dev" className="w-full max-w-80" />
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/phone-demo

API reference

A phone frame for screenshots, recordings or other children. Set its width through className; the bezel, corners and chrome scale with that width. The screen keeps a 9:19.5 ratio. Size an image child with size-full and object-cover, or position artwork against the relative screen content. Browser chrome is decorative; address adds it without navigation behavior.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: @phosphor-icons/react, class-variance-authority, cn. The CLI installs them for you.

Last updated on