V Prism

V Prism: Interactive 3D glass prism dispersion effect with refraction highlights. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install V Prism

npx motion-ui-skill add v-prism

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • next-themes
  • postprocessing
  • react
  • tailwind-merge
  • three

Source files

V Prism

Component from Motion UI: v-prism

Install

npx motion-ui-skill add v-prism

Dependencies

  • clsx
  • next-themes
  • postprocessing
  • react
  • tailwind-merge
  • three

Usage

"use client";

import { VPrism as VPrism } from "@/components/craft/v-prism";

export function Example() {
  return (
    <div className="p-6">
      <VPrism />
    </div>
  );
}

Browse this category