Components
Metal Shell
A brushed-metal device shell.
ProPro, coming soon.
<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
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | The screen. | |
finish | "silver" | "graphite" | "gold" | "silver" | Metal colour. |
bezel | number | 14 | Pixels of metal around the screen. |
radius | number | 28 | Outer corner radius in pixels. The screen's follows it. |
className | string | Classes for the shell. |
The shell doesn't move, so reduced motion changes nothing.