Torus
A torus (donut) primitive with variants, sizes, and animation support.
Preview
Usage
tsx
import { Scene, Torus } from "@3d-ui/components"
export function MyTorus() {
return (
<Scene>
<Torus
variant="secondary"
size="lg"
animate
/>
</Scene>
)
}Variants
Props
| Prop | Type | Default |
|---|---|---|
| variant | "default" | "primary" | "secondary" | "destructive" | "default" |
| size | "sm" | "default" | "lg" | "default" |
| radialSegments | number | 16 |
| tubularSegments | number | 48 |