Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
// Keys go to the focused element: a tabIndex div focused by a click hears keydown with key and code.
// proves: react-dom.event.onKeyDown, api.Element.keydown_event, html.global_attributes.tabindex
// tier: quick
import { trace } from "parity";
export const steps = [{ click: "pad" }, { key: "a" }, { key: "ArrowDown" }, { key: "Enter" }];
export default function Case() {
return (
<div data-testid="root" className="h-full w-full bg-white p-4 text-slate-900">
<div data-testid="pad" tabIndex={0} className="h-24 w-48 bg-slate-200 outline-none focus:bg-sky-200" onKeyDown={(e) => trace("keydown", "pad", { key: e.key, code: e.code })} />
</div>
);
}