Components
Loading preview...
An interactive background component that renders glowing animated tubes powered by Three.js. Designed for Next.js + React, it features customizable tube colors, light palettes, intensity, and text overlays. Includes an option to randomize colors on click for a dynamic user experience.
@rahil1202
npx shadcn@latest add https://21st.dev/r/rahil1202/tube-cursor
import { TubesCursor } from "@/components/ui/tube-cursor";
export default function DemoOne() {
return <TubesCursor
title="Tubes"
subtitle="Cursor"
caption="Click to Change- by Rahil Vahora"
initialColors={["#ff0000", "#00ff00", "#0000ff"]}
lightColors={["#ffff00", "#ff00ff", "#00ffff", "#ffffff"]}
lightIntensity={250}
titleSize="text-[70px]"
subtitleSize="text-[50px]"
captionSize="text-lg"
enableRandomizeOnClick
/>;
}