Skip to content
PixiKit

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
NameTypeDefaultDescription
namestring"Alexander Doe"Name shown on the card.
rolestring"Senior Developer"Role shown under the name.
badgestring"Verified"Label of the badge in the top left corner.
statusstring"Active"Label of the status chip in the top right corner.
statusColorstring"#22c55e"Color of the status dot.
idLabelstring"ID number"Small label above the ID number.
idValuestring"8901 2345 6789"ID number shown in the footer.
childrenReactNodeNoneCustom content for the card. Replaces the badge, name and footer.
theme"dark" | "light""dark"Dark graphite or light silver metal, with matching text.
videoSrcstringNoneLooping video the card reflects when the camera is off. Without one it reflects a soft studio.
webcambooleanfalseReflects the camera feed, mirrored. Asks for camera access and falls back to the video.
onWebcamError(error: Error) => voidNoneCalled when camera access is denied or unavailable.
tintstring"#ffffff"Color of the metal. White gives plain steel.
metalnessnumber1How strongly the surface mirrors the scene, from 0 to 1. At 0 the card turns matte.
roughnessnumber0.3Brushed grain of the metal, from 0 to 1. Stretches reflections along the grain.
blurStrengthnumber6Blur of the reflection, in px.
grayscalenumber1Removes color from the reflection, from 0 to 1. Lower it to see the scene in color.
warpnumber0.6Gentle bends in the surface that ripple the reflection.
warpScalenumber1Size of the bends.
shinenumber1Brightness of the light band that sweeps across the card as it tilts.
bevelnumber3Width of the polished edge that catches the light, in px.
glarenumber0.5Strength of the light that follows the cursor, from 0 to 1.
enableTiltbooleantrueTilts the card toward the cursor.
tiltStrengthnumber12Largest tilt angle, in degrees.
introbooleantrueFades the card in and sweeps the light across it once.
widthnumber | string320Width of the card. Numbers are in px.
heightnumber | string500Height of the card. Numbers are in px.
radiusnumber24Corner radius, in px.
classNamestring""Extra class names for the card.
styleCSSPropertiesNoneInline styles for the card.

More interaction components in Pro

View all

Related