Device frame
Place your content inside a licensed bitmap frame or a consumer supplied Apple Product Bezel.
Make room
for ideas.
A place for what matters today.
Installation
bunx --bun shadcn@latest add https://apple-ui-eduardo.vercel.app/r/device-frame.jsonThe registry includes the shared styles and dependencies. Import @/components/apple-ui/styles.css in your root layout once. For the package route, use the installation guide.
Usage
<DeviceFrame device="iphone-17-pro" finish="deep-blue">
<YourApp />
</DeviceFrame>Package imports use @eduardoul/apple-ui. Registry imports use @/components/apple-ui. Add "use client" to files that use state or event handlers.
API reference
| Property | Type | Default |
|---|---|---|
| device | DeviceId | required |
| orientation | portrait | landscape | device default |
| finish | string | device default |
| bezelSrc | string | bundled image or required |
| assetBasePath | string | versioned public source |
| frameSource | bundled | apple | inferred from asset props |
| showStatusBar | boolean | false |
| children | ReactNode | undefined |
Use className and style to customize the component. The package includes full TypeScript definitions for its supported element properties and refs.
Design guidance
- Use a bundled MIT render or CC0 illustration for a frame that works without setup.
- Supply current Apple bezel art only under the license that came with your download.
- Use a legacy illustration ID only when compatibility with the earlier API is required.
Accessibility
Provide a visible label or accessible name. Keep keyboard focus visible and check the example with your content at 200 percent zoom. Overlays use Radix for focus management and keyboard dismissal.
Library styles support reduced motion, reduced transparency, increased contrast and forced colors. Read the accessibility foundation for the checks your application still needs.
