npm install @prismojs/reactor with pnpm / yarn:
pnpm add @prismojs/react
yarn add @prismojs/reactAdd the CSS import once in your app entry point (e.g. layout.tsx or _app.tsx).
import '@prismojs/react/styles';The stylesheet contains all rarity effects, shine overlays, and glare layers. It is required for the visual effects to work.
import { PrismoCard } from '@prismojs/react';
export function MyCard() {
return (
<PrismoCard rarity="rare holo v">
<img
src="/my-card.png"
alt="My card"
style={{ width: '100%', borderRadius: 12 }}
/>
</PrismoCard>
);
}Wrap any content — images, divs, custom markup — and the holographic effect is automatically applied on pointer interaction.
If you use Next.js, add @prismojs/react to transpilePackages in your config:
// next.config.ts
const config = {
transpilePackages: ['@prismojs/react'],
};
export default config;