UI
← Home

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.

  • Axe
  • Focus

Preview

Installation

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

Conformance

Verified against the @publictheta/ui-spec rotate-canvas specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.

  • Axe No WCAG 2 A/AA axe-core violations
  • Focus A visible focus indicator appears on keyboard focus (WCAG 2.4.7)

See the full conformance matrix across all components.