holographic-card
eldoraui/holographic-cardFreeComponent
An interactive card with a holographic gradient and mouse‑reactive tilt effect.
Live preview
live · rendered by the registry
Rendered by eldoraui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://eldoraui.site/r/holographic-card.jsonSource
1"use client"23import React, { useRef, useState } from "react"4import {5 motion,6 useMotionTemplate,7 useMotionValue,8 useSpring,9 useTransform,10} from "motion/react"1112// ==========================================13// ==== Component Interface ================14// ==========================================15export interface HolographicCardProps {16 id?: string17 width?: number18 height?: number19 imageSrc: string20 // -- Hover Image --21 hoverImageSrc?: string22 hoverImageEase?: string23 // -- Content Strings --24 topText?: React.ReactNode25 bottomText?: React.ReactNode26 // -- Text Layout / Global --27 mirrorBottomText?: boolean28 isRTL?: boolean29 textOverlayPadding?: string30 // -- Top Text Config --31 topTextVertical?: boolean32 topTextWeight?: number | string33 topTextFontSize?: string | number34 topTextLetterSpacing?: string | number35 topTextColor?: string36 topTextHoverColor?: string37 topTextClassName?: string38 // -- Bottom Text Config --39 bottomTextVertical?: boolean40 bottomTextWeight?: number | string41 bottomTextFontSize?: string | number42 bottomTextLetterSpacing?: string | number43 bottomTextColor?: string44 bottomTextHoverColor?: string45 bottomTextClassName?: string46 // -- Base Visuals --47 borderRadius?: number48 borderWidth?: number49 borderColor?: string50 backgroundColor?: string51 imageOpacity?: number52 maxImageWidthPct?: number53 // -- Pattern Props --54 patternColor?: string55 patternOpacity?: number56 patternSize?: number57 patternDotSize?: number58 // -- Hologram --59 enableHologram?: boolean60 hologramOpacity?: number61 holographicGradient?: string62 // -- Interaction --63 enableTilt?: boolean64 enableDrag?: boolean65 dragConstraints?: React.RefObject<Element>66 className?: string67 style?: React.CSSProperties68}6970// ==========================================71// ==== Component Implementation ===========72// ==========================================73const HolographicCard: React.FC<HolographicCardProps> = ({74 id = "namer-ui-holographic-card",75 width = 320,76 height = 480,77 imageSrc,78 hoverImageSrc,79 hoverImageEase = "0.3s",80 // Content81 topText,82 bottomText,83 // Layout84 mirrorBottomText = true,85 isRTL = false,86 textOverlayPadding = "1.375rem 1.325rem",87 // Top Text Defaults88 topTextVertical = true,89 topTextWeight = 700,90 topTextFontSize = "1.5rem",91 topTextLetterSpacing = "0.1em",92 topTextColor = "#fff",93 topTextHoverColor = "#FBE75F",94 topTextClassName = "",95 // Bottom Text Defaults96// … truncated
What it pulls in
npm packages
Files it writes
More from eldoraui
All 115 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| animated-badgeanimated-badge | eldoraui | Components | Free | 2 deps | |
| animated-frameworksanimated-frameworks | eldoraui | Components | Free | 2 deps | |
| animated-grid-patternanimated-grid-pattern | eldoraui | Components | Free | 3 deps | |
| animated-listanimated-list | eldoraui | Components | Free | 1 dep | |
| animated-shiny-buttonanimated-shiny-button | eldoraui | Components | Free | 1 dep | |
| blur-in-textblur-in-text | eldoraui | Components | Free | 3 deps | |
| browserbrowser | eldoraui | Components | Free | 2 deps | |
| card-flip-hovercard-flip-hover | eldoraui | Components | Free | 1 dep |
