Mirror Card
A brushed metal ID card that mirrors a soft studio, a video or the camera, with a light band that sweeps across it as it tilts toward the cursor.
pixikit.com/docs/components/mirror-card
Customize
Status color
Theme
Webcam
Tint
Metalness1.00
Roughness0.30
Blur strength6px
Grayscale1.00
Warp0.60
Warp scale1.0
Shine1.00
Bevel3px
Glare0.50
Enable tilt
Tilt strength12°
Intro
Width320px
Height500px
Radius24px
Props
30| Name | Type | Default | Description |
|---|---|---|---|
name | string | "Alexander Doe" | Name shown on the card. |
role | string | "Senior Developer" | Role shown under the name. |
badge | string | "Verified" | Label of the badge in the top left corner. |
status | string | "Active" | Label of the status chip in the top right corner. |
statusColor | string | "#22c55e" | Color of the status dot. |
idLabel | string | "ID number" | Small label above the ID number. |
idValue | string | "8901 2345 6789" | ID number shown in the footer. |
children | ReactNode | None | Custom content for the card. Replaces the badge, name and footer. |
theme | "dark" | "light" | "dark" | Dark graphite or light silver metal, with matching text. |
videoSrc | string | None | Looping video the card reflects when the camera is off. Without one it reflects a soft studio. |
webcam | boolean | false | Reflects the camera feed, mirrored. Asks for camera access and falls back to the video. |
onWebcamError | (error: Error) => void | None | Called when camera access is denied or unavailable. |
tint | string | "#ffffff" | Color of the metal. White gives plain steel. |
metalness | number | 1 | How strongly the surface mirrors the scene, from 0 to 1. At 0 the card turns matte. |
roughness | number | 0.3 | Brushed grain of the metal, from 0 to 1. Stretches reflections along the grain. |
blurStrength | number | 6 | Blur of the reflection, in px. |
grayscale | number | 1 | Removes color from the reflection, from 0 to 1. Lower it to see the scene in color. |
warp | number | 0.6 | Gentle bends in the surface that ripple the reflection. |
warpScale | number | 1 | Size of the bends. |
shine | number | 1 | Brightness of the light band that sweeps across the card as it tilts. |
bevel | number | 3 | Width of the polished edge that catches the light, in px. |
glare | number | 0.5 | Strength of the light that follows the cursor, from 0 to 1. |
enableTilt | boolean | true | Tilts the card toward the cursor. |
tiltStrength | number | 12 | Largest tilt angle, in degrees. |
intro | boolean | true | Fades the card in and sweeps the light across it once. |
width | number | string | 320 | Width of the card. Numbers are in px. |
height | number | string | 500 | Height of the card. Numbers are in px. |
radius | number | 24 | Corner radius, in px. |
className | string | "" | Extra class names for the card. |
style | CSSProperties | None | Inline styles for the card. |