Skip to content

Foil Card

Fine metallic grooves catch a shifting iridescent pointer highlight.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import FoilCard from "./FoilCard";
export default function Example() {
return (
<FoilCard
children={"Objects of\nquiet distinction."}
color={"#c2b6e5"}
background={"#222027"}
radius={22}
strength={12}
eyebrow={"COLLECTED / EDITION 009"}
footer={"A study in light and material"}
/>
);
}

Using Foil Card

Place your own content in children and set width or minHeight with style. The foil layer is decorative and does not block links or controls inside the card.

Keep strength subtle for readable content. The card returns to its resting position when the pointer leaves, and reduced motion disables its tilt.

Props

NameTypeRequiredDefaultDescription
childrenReactNodeNoundefinedYour card content, including nested markup.
footerReactNodeNoundefinedOptional footer content supplied by the caller.
eyebrowReactNodeNoundefinedOptional eyebrow content supplied by the caller.
colorstringNo"#c2b6e5"Edge tint of the metallic card.
backgroundstringNo"#222027"Base surface colour.
radiusnumberNo22Corner radius in pixels.
strengthnumberNo12Maximum pointer tilt range in degrees.
classNamestringNo""Additional classes on the root element.
styleCSSPropertiesNoundefinedInline styles for sizing, typography and appearance.

Related components

A paper flap lifts in 3D as a message slides out of its envelope.

A lightly textured receipt pairs precise item rows with a torn paper edge.

A suspended badge swings naturally after you drag and release its handle.

A precision-cut card with chamfered corners and a folded accent.