3D Showcase

The 3D Showcase component is a React Three Fiber component that renders a 3D hollow cylinder with a custom image texture and subtle rotation. Perfect for dynamic 3D showcases.

Usage

Follow the steps below to add the 3D Showcase Component to your project.

1

Add the import statement for the component

import { Showcase } from "@/components/elixir-ui/showcase"; 

2

Import the component in your project and use it

<Showcase
  imageSrc="/components/jujutsu-kaisen.png"
  text="Anime"
  fontSize="55px"
  fontFamily="exo"
  textColor="#FFFFD4"
  className="h-full w-full bg-black"
  rotationSpeed={0.005}
  bloomIntensity={2}
  enableControls={true}
/>

Props

PropTypeDefaultDescription
imageSrcstring-The source of the image to be displayed
textstring-The text to be displayed
fontSizestring40pxThe size of the text
fontFamilystringTimes New RomanThe font family of the text
textColorstring#F6F77DThe color of the text
rotationSpeednumber0.006The speed of the rotation
bloomIntensitynumber3The intensity of the bloom
enableControlsbooleantrueWhether to enable the controls
classNamestring-Additional CSS classes