Pinwheel

A paper pinwheel on a stick. Each blade has a raised folded triangle, so it has real depth. It spins up while you hover or press it, then eases back.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Pinwheel3D props

PropTypeDefaultDescription
sizenumber120Blade length in px.
colors[string, string, string, string]["#ef4444", "#facc15", "#3b82f6", "#22c55e"]Four blade colours.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks