Holo Card
FreeMake one showcase item stand out with a soft glow that follows the mouse across the card.
npx wunderui-cli add holo-cardPlayground
Holo Card
Hover to reveal the spotlight effect.
Holo Card
Hover to reveal the spotlight effect.
Holo Card
Hover to reveal the spotlight effect.
Anomaly detection
Get notified when a metric moves outside its usual range.
Anomaly detection
Get notified when a metric moves outside its usual range.
Anomaly detection
Get notified when a metric moves outside its usual range.
Unlock every block
All blocks, the Figma library and every update for a one-time $299.
Installation
npx wunderui-cli add holo-cardWrites the source into your project with its dependencies and, on first use, the styles - see Installation.
Then import what you need:
import { HoloCard } from "@/components/wunderui/holo-card"Then use it:
import { HoloCard } from "@/components/ui/holo-card"
export function Featured() {
return (
<HoloCard className="w-72">
<p className="text-sm font-semibold text-foreground">Holo Card</p>
<p className="mt-1 text-sm text-text-secondary">Hover to reveal the spotlight effect.</p>
</HoloCard>
)
}Expected result: You see a bordered card with two lines of text. A soft glow in the primary colour follows the mouse while it is over the card.
When to use
Use Holo Card for
- A featured plan on a pricing section or a landing page
- One announcement or upgrade offer on a dashboard
- A showcase item that should reward a closer look with the mouse
Use something else for
- Card for everyday content, dashboard tiles and anything that is a list of equals
- Hover Card for a preview that opens beside a trigger on hover
- Alert for a message about the state of the page or a form
Content
The card takes any content and adds only a border, 16 px of padding and the glow. Move the cursor over a card to see it.
Holo Card
Hover to reveal the spotlight effect.
Anomaly detection
Get notified when a metric moves outside its usual range.
Unlock every block
All blocks, the Figma library and every update for a one-time $299.
Appearance
The glow is mixed from the primary colour, so it follows the brand and dark mode. To tint it, set the primary colour on a wrapper, and everything inside that uses it changes too.
Holo Card
Hover to reveal the spotlight effect.
Holo Card
Hover to reveal the spotlight effect.
Holo Card
Hover to reveal the spotlight effect.
Behavior and motion
How the card reacts to the pointer, focus and motion. It has no keyboard interaction of its own.
- The glow
- The glow follows the mouse and is 320 px across at any card size. It starts at the middle of the card, so it never jumps in from a corner.
- Hover only
- The glow shows while the pointer is over the card and fades out when it leaves. Touch screens have no hover and a keyboard never moves the pointer, so neither gets the effect.
- No focus, no role
- The card is a plain div: not focusable and not announced. Any link or button inside keeps its own focus ring and role.
- Colour
- The glow mixes the primary colour at 25 % with transparent, so it follows brand and dark mode. Set the primary colour on a wrapper to tint it.
- Fade
- The glow fades in and out quickly. Its position isn't animated: it jumps to the pointer on every move.
- Reduced motion
- Nothing on the card moves and the glow is a colour change, so reduced motion changes nothing. To drop the effect anyway, hide the glow with a class; the card is complete without it.
Anatomy
The parts of a holo card, numbered in the figure. The glow is drawn on in the figure; in use it shows only under a pointer.
Holo Card
Hover to reveal the spotlight effect.
- 1
A card with a border, 16 px padding and a 16 px radius that clips its content. It tracks the pointer position for the glow, and you pass a class for the width.
- 2Optional
A radial gradient 320 px across in the primary colour at 25 %, fading out. It fades in on hover, follows the pointer and sits behind the content; the figure keeps it on.
- 3
The children, placed above the glow. Anything goes: text, an icon tile, a badge, buttons.
Best practices
- Do
Use it once or twice per view. When every card glows, none of them stands out.
- Do
Tint the glow by setting the primary colour on a wrapper, not with a gradient of your own. It follows brand and dark mode, and everything inside that uses the primary colour changes with it.
- Do
Keep the card complete without the glow. It appears only under a mouse pointer, so touch and keyboard users never need it.
- Do
Put a real link or Button inside for the action, and set the card's width with a class.
- Don’t
Don't rely on the glow to show the card is clickable. It is decoration with no focus state, no role and no tab stop.
- Don’t
Don't expect a tilt or 3D effect. The card never moves or rotates; only the glow under the pointer changes.
API reference
HoloCard draws one card and takes the props below.
A card with a border, 16 px padding and a 16 px radius that clips its content. It tracks the pointer position for the glow, and you pass a class for the width.
| Prop | Type | Default | Description |
|---|---|---|---|
| children required | ReactNode | — | The content of the card, placed above the glow. |
| className | string | — | Extra classes for the card, merged with its own. Use it for the width. Do not use it to change the glow; set on a wrapper. |
Notes for AI
Give your coding assistant the Markdown reference instead of screenshots.
get_component("holo-card")npx wunderui-cli add holo-cardThe full library index for assistants is at /llms.txt.