Skip to Content
zjkm-ui
Components

Metal Shell

A brushed-metal device shell.

ProPro, coming soon.
9:41
Props
14px
28px
<MetalShell>
  <img src="/screen.png" alt="…" />
</MetalShell>

Get notified

Metal Shell is a Pro effect. Join the waitlist and we'll email you when it's available.

Usage

A brushed-metal shell around a screen, in silver, graphite or gold. The brushed texture is a small inline SVG, so it costs no image request.

import { MetalShell } from "@zjkm/pro/metal-shell";

export function Showcase() {
  return (
    <MetalShell finish="graphite">
      <img src="/lock-screen.png" alt="Lock screen with three notifications" />
    </MetalShell>
  );
}

Props

PropTypeDefaultDescription
childrenReactNodeThe screen.
finish"silver" | "graphite" | "gold""silver"Metal colour.
bezelnumber14Pixels of metal around the screen.
radiusnumber28Outer corner radius in pixels. The screen's follows it.
classNamestringClasses for the shell.

The shell doesn't move, so reduced motion changes nothing.

On this page