Docs/PACKAGES/@gwenui/supreme

@gwenui/supreme

3D full-page blocks and utilities for GwenUI — React Three Fiber, WebGL, and cinematic transitions.

Overview#

@gwenui/supreme is the premium tier of GwenUI. It ships 3D blocks and transition utilities powered by React Three Fiber, WebGL, and native SVG animations.

Supreme blocks require WebGL support. They gracefully degrade on unsupported devices — falling back to static layouts.

What's included#

Blocks

BlockDescription
parallax-heroFloating layered images with mouse-driven parallax

Utilities

UtilityDescription
mask-transitionSVG mask page transition system — circle expand/shrink

Installation#

Supreme blocks are installed via the CLI:

gwen-ui add parallax-hero

The CLI automatically installs required dependencies (@react-three/fiber, @react-three/drei, three) when adding a Supreme block.

Transition system#

@gwenui/supreme includes a lightweight page transition system:

// Wrap your root layout
import { TransitionLayout } from '@/components/supreme/mask-transition'
 
export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <TransitionLayout>{children}</TransitionLayout>
      </body>
    </html>
  )
}
// Use the hook for programmatic navigation
import { usePageTransition } from '@/components/supreme/mask-transition'
 
const { navigateTo } = usePageTransition()
 
<button onClick={() => navigateTo('/blocks')}>
  Explore Blocks
</button>

See the Supreme — Parallax Hero block for a full example.

Stack#

DependencyUsage
React Three Fiber3D rendering
DreiR3F helpers and abstractions
Three.jsWebGL engine
ZustandTransition state management
Framer MotionOrchestration and timing

Status#

In active development. First blocks shipping soon. 🚧