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.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
Installation
pnpm dlx shadcn@latest add @01orbital/phonenpx shadcn@latest add @01orbital/phoneyarn dlx shadcn@latest add @01orbital/phonebunx --bun shadcn@latest add @01orbital/phoneUsage
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-demonpx shadcn@latest add @01orbital/phone-demoyarn dlx shadcn@latest add @01orbital/phone-demobunx --bun shadcn@latest add @01orbital/phone-demoAPI 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