Xzero UI
Pro library

Holo cardPro

A member card that tilts toward you with a holographic foil and flips to its back.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui-pro/holo-card
Live · keyboard ready

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui-pro/holo-card

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { HoloCard } from "@/components/xzero/holo-card/holo-card";

export function MemberCard() {
  return (
    <HoloCard
      label="Jasmine Brooks, member card"
      front={<div className="front">...</div>}
      back={<div className="back">...</div>}
    />
  );
}

API reference

HoloCard

A collectible style card that leans toward the pointer with a holographic foil, a glitter layer, and a glare that follow the angle. Click or press Enter to spin it to its back; on phones it can follow device tilt.

PropTypeDefaultDescription
front (required)ReactNode–The face. Fill the whole card; it is clipped to the rounded shape.
backReactNode–The back. Leave it out for a tilt only card that is not a button.
flippedboolean–Controlled flipped state.
defaultFlippedbooleanfalseInitial flipped state when uncontrolled.
onFlippedChange(flipped: boolean) => void–Called when the card is flipped.
maxTiltnumber14Largest lean in degrees.
intensitynumber1Strength of foil, glitter, and glare from 0 to 1.
gyroscopebooleantrueFollows device tilt on touch screens. On iOS permission is asked on the first tap.
labelstring–Accessible name. Defaults to the text on the card.
classNamestring–Class on the root. Set width here; the card keeps a 5:7 ratio.
styleCSSProperties–Inline style on the root.

Keyboard interactions

KeysAction
TabFocuses the card when it has a back.
Enter / SpaceFlips the card.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Also in surfaces

Guidance for AI tools

Holo card: A member card that tilts toward you with a holographic foil and flips to its back. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components