UI EngineeringAdvanced9 min

Generative UI Components That Engineers Can Ship

Move from an AI-generated component concept to a complete, accessible, state-aware implementation specification.

Updated 2026-08-17 · Published by Claude Designer

Key takeaways

  • Generate behavior and states, not only appearance.
  • Reuse the existing component system before creating variants.
  • Make accessibility and data constraints part of the prompt.

Define the component contract

Before generating UI, define the component’s responsibility, inputs, outputs, data ownership, and surrounding context. A card that only looks complete may still fail when the title wraps, the image is absent, the user lacks permission, or the action is processing.

Request the complete state model

  • Default, hover, focus, active, disabled, and loading states.
  • Empty, partial, error, offline, and permission-limited states.
  • Keyboard order, focus return, labels, and status announcements.
  • Small-screen behavior and long-content behavior.
  • Analytics events and the conditions that trigger them.

Constrain generation to the system

Provide available primitives, tokens, and variant conventions. Ask the model to compose those pieces first. New abstractions should have a clear reuse case and should not duplicate an existing component under a different name.

Review code as code

Generated markup needs the same review as human-written implementation: semantic structure, type safety, state ownership, performance, security, test coverage, and maintainability. Visual plausibility is not evidence that the component is production-ready.