Cylinder
A cylinder primitive with variants, sizes, and animation support.
Preview
Usage
tsx
import { Scene, Cylinder } from "@3d-ui/components"
export function MyCylinder() {
return (
<Scene>
<Cylinder
variant="primary"
size="default"
animate
/>
</Scene>
)
}Variants
Props
| Prop | Type | Default |
|---|---|---|
| variant | "default" | "primary" | "secondary" | "destructive" | "default" |
| size | "sm" | "default" | "lg" | "default" |
| animate | boolean | false |
| segments | number | 32 |