SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

PhoneFrame

Hardware chrome for a phone screenshot or live screen on a landing.

TodayThree things left
  • GroceriesMaya · due today
  • Bins outJonah · tonight
  • School pickupAri · 15:30
View code
tsx
<PhoneFrame bezel="#161412">
	<div mix={[screenCorners(), /* home screen */]}>
		…
	</div>
</PhoneFrame>

Demo landings

Whole pages built only from @sdxc/ui, each for an invented product with its own palette and type. They open in a new tab.

Every demo, landings and docs sites alike, is listed in the demo gallery.

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
import { PhoneFrame } from "@sdxc/ui/landing";

The bezel around a phone screen. The capture carries its own status bar, so the frame adds only the hardware rim.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

PropTypeRequiredDescription
bezelstringNoBezel fill. Defaults to var(--app-bezel) so a page can paint every phone from one token, then to DEFAULT_BEZEL when that token is unset.
childrenRemixNodeYesThe screen: a capture, a picture, or live UI, clipped with screenCorners.

Also accepts everything in TagProps<"div">.

Other components this module publishes.

  • screenCorners
@sdxc/ui

Can’t find it? Contact us