Skip to content
PixiKit

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
NameTypeDefaultDescription
avatarUrlstring""Portrait shown on the card.
iconUrlstringNoneTileable pattern, like a logo pattern. The holo foil shows only through it.
miniAvatarUrlstringNoneSmall round image next to the handle. Hidden when not set.
namestring"Javi A. Torres"Name shown over the portrait.
titlestring"Software Engineer"Role shown under the name.
handlestring"javicodes"Handle shown in the footer, without the @.
statusstring"Online"Status text shown under the handle.
statusColorstring"#22c55e"Color of the status dot.
contactTextstring"Contact"Label of the contact button.
showUserInfobooleantrueShows the footer with the handle, status and contact button.
onContactClick() => voidNoneCalled when the contact button is clicked.
theme"dark" | "light""dark"Color theme of the frame and footer.
backdropColorstringNoneColor behind the portrait. Shows around cut-out photos. Uses the theme color when not set.
radiusnumber16Corner radius of the photo, in px.
holonumber0.8Strength of the holographic foil, from 0 to 1. It lights up where the cursor catches it.
glarenumber0.5Strength of the light that follows the cursor, from 0 to 1.
enableTiltbooleantrueTilts the card toward the cursor.
tiltStrengthnumber12Largest tilt angle, in degrees.
parallaxnumber8How far the portrait shifts as the card tilts, in px.
enableMobileTiltbooleanfalseTilts the card with the motion of the phone after a tap. Needs HTTPS.
mobileTiltSensitivitynumber5How strongly phone motion tilts the card.
introbooleantrueCatches the light once as the card appears, then settles.
innerGradientstringNoneA CSS gradient behind the portrait, in place of the backdrop color.
foilGradientstring"linear-gradient(115deg, #ff7ab8, #ffd36e, #7dffb0, #6ecbff, #b78bff, #ff7ab8)"The CSS gradient the holo foil is made of.
glareColorstring"#ffffff"Color of the light that follows the cursor.
classNamestring""Extra class names for the card.

Related