Skip to content

feat: add TubesBackground component and types#927

Open
AshishDev-16 wants to merge 4 commits intomagicuidesign:mainfrom
AshishDev-16:CursorFlux
Open

feat: add TubesBackground component and types#927
AshishDev-16 wants to merge 4 commits intomagicuidesign:mainfrom
AshishDev-16:CursorFlux

Conversation

@AshishDev-16
Copy link
Copy Markdown

This PR introduces a brand new, highly interactive 3D animated TubesBackground component to the MagicUI library using threejs-components.

Changes

  • New Component: Added TubesBackground for gorgeous, customizable, animated 3D background effects.
  • Interactivity: Built-in click interactions to randomize the abstract tube lighting and color gradients dynamically on the canvas.
  • Demo & Registry: Created a fully featured demo (tubes-background-demo.tsx) and successfully registered the component for the CLI.
  • Documentation: Wrote comprehensive MDX documentation (tubes-background.mdx) with clear usage instructions and configured it in the docs sidebar.
  • Types: Ensured strict TypeScript compliance by adding the necessary declaration types (threejs-components.d.ts).

Motivation

MagicUI aims to provide the best modern, dynamic web interface components out there. Adding this abstract geometric 3D background gives users a premium, high-end aesthetic option right out of the box. It feels completely alive and responsive to clicks, giving any landing page or hero section an immediate "wow" factor.

Breaking Changes

None! This is purely a neat, backwards-compatible new component addition.

Screenshots / Videos

Screen.Recording.2026-03-18.141843.mp4

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants