Skip to content

armgit / raea

Public Imported from GitHub
0

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.

651 B
Raw Blame
// Editing keys: typed, then Backspace deletes, ArrowLeft moves the caret and typing inserts there.
// proves: html.elements.input.type_text, react-dom.controlled.input.value
import { useState } from "react";
export const steps = [{ click: "field" }, { text: "abcd" }, { key: "Backspace" }, { key: "ArrowLeft" }, { text: "X" }];
export default function Case() {
  const [v, setV] = useState("");
  return (
    <div data-testid="root" className="h-full w-full bg-white p-4 text-slate-900">
      <input data-testid="field" className="h-9 w-56 border border-slate-400 px-2 text-sm" value={v} onChange={(e) => setV(e.target.value)} />
    </div>
  );
}