Loading preview
Cards arranged in a ring that turns in 3D, with buttons, arrow keys and announcements.
A WebGL wireframe sphere with glowing vertices that turns and leans toward the pointer.
npx shadcn@latest add @venusui/wireframe-orbRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/hooks/use-scene-state.tsfrom use-scene-state@/components/ui/wireframe-orb.tsxThe code behind the preview above.
wireframe-orb-demo.tsx
import { WireframeOrb } from "@/components/ui/wireframe-orb"
export default function WireframeOrbDemo() {
return <WireframeOrb className="max-w-xs" />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| detail | number | 2 | Geometry detail: 0 is a plain icosahedron, 3 is nearly round. |
| follow | number | 0.5 | How strongly it leans toward the pointer. |
| label | string | "Rotating wireframe sphere" | Accessible description. |
| className | string | — | Classes for the wrapper; set the color with a text class. |
Only the props above.
three and @react-three/fiber. The CLI installs both, plus @types/three as a dev dependency.detail={1} gives a crisp geometric look; 3 looks like a globe.follow={0} to turn off the pointer lean.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.Cards arranged in a ring that turns in 3D, with buttons, arrow keys and announcements.
A CSS-only cube with six content faces that tumbles slowly and pauses on hover.
A tilted wall of vertically scrolling columns, for screenshots and showcases.