Canvas Shape
A movable, resizable object on a canvas (direct manipulation). Focus it and use the arrow keys to move (Shift+arrows to resize), or drag its body to move and drag the corner handle to resize. Position and size are clamped to the canvas.
- Axe
- Focus
- Drag
Preview
Installation
npx shadcn@latest add https://ui.publictheta.com/r/canvas-shape.jsonConformance
Verified against the @publictheta/ui-spec canvas-shape 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)
- Drag — Pointer-drag surfaces don't select text or hijack touch scrolling
See the full conformance matrix across all components.