What to Check When Reviewing AI-Generated UI A developer outlines key accessibility and usability checkpoints for reviewing AI-generated user interfaces, emphasizing proper label-input associations, unique IDs, accessible names for icon buttons, explicit button types, and semantic HTML elements. The guidance applies to hand-written code as well and includes React-specific examples using useId and htmlFor. AI can help us build a form, a modal, or a dashboard quickly. The result may look good. The inputs accept text. The buttons respond. The layout fits the screen. But before merging the code, there is another question to ask: Does the UI work well beyond the happy path? Some details are easy to miss during a visual review. A label may not be connected to its input. An icon button may have no accessible name. A secondary button may submit a form by accident. These are review checkpoints, not claims that every AI tool makes these mistakes. They apply to code we write ourselves too. The examples below use React, but most of the ideas come from HTML and apply across frameworks. The snippets focus on individual details rather than a complete application. This looks reasonable: