← ui-lab

Rotate Canvas

A rotatable shape modeled as a spinbutton whose value is the rotation angle in degrees. Focus it and use the arrow keys to rotate by a step; the value wraps around 360° and the shape rotates to match, so aria-valuenow and the rendered transform agree.

Preview

Installation

npx shadcn@latest add https://ui.publictheta.com/r/rotate-canvas.json

Conformance

This component conforms to the @publictheta/ui-spec rotate-canvas specification. Run the suite against any implementation with pnpm conformance.