Foil Profile
A profile card that tilts toward the cursor, with a holographic foil that lights up through an icon pattern, a glare that follows the pointer and a portrait that shifts in depth.
pixikit.com/docs/components/foil-profile
Customize
Status color
Show user info
Theme
Backdrop color
Radius16px
Holo0.80
Glare0.50
Enable tilt
Tilt strength12°
Parallax8px
Enable mobile tilt
Mobile tilt sensitivity5.0
Intro
Glare color
Props
26| Name | Type | Default | Description |
|---|---|---|---|
avatarUrl | string | "" | Portrait shown on the card. |
iconUrl | string | None | Tileable pattern, like a logo pattern. The holo foil shows only through it. |
miniAvatarUrl | string | None | Small round image next to the handle. Hidden when not set. |
name | string | "Javi A. Torres" | Name shown over the portrait. |
title | string | "Software Engineer" | Role shown under the name. |
handle | string | "javicodes" | Handle shown in the footer, without the @. |
status | string | "Online" | Status text shown under the handle. |
statusColor | string | "#22c55e" | Color of the status dot. |
contactText | string | "Contact" | Label of the contact button. |
showUserInfo | boolean | true | Shows the footer with the handle, status and contact button. |
onContactClick | () => void | None | Called when the contact button is clicked. |
theme | "dark" | "light" | "dark" | Color theme of the frame and footer. |
backdropColor | string | None | Color behind the portrait. Shows around cut-out photos. Uses the theme color when not set. |
radius | number | 16 | Corner radius of the photo, in px. |
holo | number | 0.8 | Strength of the holographic foil, from 0 to 1. It lights up where the cursor catches it. |
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. |
parallax | number | 8 | How far the portrait shifts as the card tilts, in px. |
enableMobileTilt | boolean | false | Tilts the card with the motion of the phone after a tap. Needs HTTPS. |
mobileTiltSensitivity | number | 5 | How strongly phone motion tilts the card. |
intro | boolean | true | Catches the light once as the card appears, then settles. |
innerGradient | string | None | A CSS gradient behind the portrait, in place of the backdrop color. |
foilGradient | string | "linear-gradient(115deg, #ff7ab8, #ffd36e, #7dffb0, #6ecbff, #b78bff, #ff7ab8)" | The CSS gradient the holo foil is made of. |
glareColor | string | "#ffffff" | Color of the light that follows the cursor. |
className | string | "" | Extra class names for the card. |