Holo Code Card

A holographic code card with foil shimmer, line highlights, and copy action.

Customize

ADVERT

Overview

Holo Code Card wraps a syntax-highlighted snippet in a glassy, holographic card that tilts with the cursor. The background foil shifts subtly under the code, while the header keeps metadata and copy actions within easy reach. Use it for docs, product highlights, or developer-focused landing pages.

Props

Use the props below to customise the holo code card in your own React application.

NameTypeRequiredDefaultDescription
titlestringNoHoloCodeCardShort title shown in the card header.
subtitlestringNoWebGL holographic foil + crisp code rendering.Supporting line beneath the title in the header.
languagestringNotsxLanguage identifier used for syntax highlighting.
codestringNoexport function cn(...classes: (string | undefined)[]) { ... }Code snippet rendered in the highlighted block.
highlightLinenumberNo8Line number to emphasize in the snippet.
classNamestringNoundefinedOptional custom class name applied to the outer container for layout tweaks.
colorsstring[]No["#0a0b14", "#6ad4ff", "#f0b8ff"]Array of up to three colors used for the backdrop gradients and foil tint.
intensitynumberNo1Overall brightness of the holographic foil effect.
tiltnumberNo1How much the card tilts as you move the pointer.
parallaxnumberNo1How much the foil shifts with pointer movement.
minHeightnumber | stringNo420Minimum height for the component container. Accepts a number (pixels) or any valid CSS height string.

Related React components

More components from the same category or sharing similar tags.