← All thinking
Learning in public · AI & component design

What I’m learning about building complex components with AI.

The interesting part wasn’t getting AI to draw a screen. It was deciding what we should build, what we should reuse, and where the component should stop.

By Nadia Elinbabi8 min read
A composition, with deliberate boundaries
Button
Dialog
Typography
Media

compose
Guidance pattern
Replaceable media
One clear next step.

Configurable content. Consistent behavior.

DismissNext →
Existing primitives → application-level patternThe decisions are still mine.
01 / Original schematic. A composition built from existing parts, not a reproduction of the product.

I recently worked through a guidance composition with AI: a reusable way to introduce something, explain a step, and let someone move on. It sounds small until you start asking how it behaves across content, screens, keyboards, and return visits.

I used ChatGPT to structure requirements, challenge assumptions, and define behavior. I used AI development tools to inspect the existing repository and find reusable primitives. Then I worked with AI-assisted development to build a working React composition.

This is an anonymous reflection on that process. The illustrations are newly created, generic explanations. They do not show the original product or its artifacts.

Field note 01

Before designing guidance, ask whether it belongs there.

My first question now is: what is the person trying to do, and why isn’t the product already making that clear? A tour can explain an unfamiliar concept. It can also become another thing someone has to get through before doing their work.

Sometimes the better decision is to improve the label, simplify the flow, or remove the ambiguity in the product itself. Sometimes the right amount of guidance is none. I want that option on the table before we become attached to a component.

AI helped me turn a loose request into questions about entry, progression, dismissal, and completion. I still owned the problem definition, the UX requirements, and the decision about what would count as acceptable.

Field note 02

Read the implementation before adding another component.

The repository audit mattered. It let us work from the components and behaviors that actually existed, rather than an imagined clean slate. I used AI to help inspect those pieces and identify what could be reused.

The architectural decision was an application-level pattern assembled from existing design-system components. We did not need another foundational primitive just because the composition had a new purpose.

I’m learning to group things by user need and behavior, not by matching rectangles. Two panels can look similar and have very different rules. Two experiences can look different and still share the same interaction contract.

That distinction helped me define the reuse boundary: reuse the stable parts, compose the experience, and avoid pulling business logic into a component simply because it is convenient today.

Field note 03

Mobile can change the pattern, not just its width.

We discarded an early pattern because it did not suit mobile needs. The replacement started with constrained screens. That was a team decision about the experience, not a request to shrink the desktop layout.

On a small screen, media, explanatory text, navigation, and the underlying task all compete for attention. The question becomes what needs to remain visible, what can be deferred, and how someone can leave without losing their place.

Too much at once

Competing elements leave little room for the task.

One step in focus
Step 1 of 3Close
A useful next step
A short explanation, with room to read.
Continue →

A clear hierarchy, readable content, and a way out.

02 / An illustrative mobile constraint: prioritize the current step and an accessible exit. These are generic sketches, not the original interface.
Field note 04

The boundary is part of the design.

A reusable component needs to know what it owns. It also needs to know what it does not own. Otherwise, the next use case brings another condition, another exception, and another hidden dependency.

Component

A consistent interaction

  • Presentation and layout
  • Navigation and dismissal
  • Keyboard and focus behavior
  • Accessibility
  • Analytics event contract

Application

A specific product context

  • Business-specific eligibility
  • Workflow connections
  • Persistence and return visits
  • Meaning of completion
  • What happens next
Explicit inputs → shared behavior → explicit events
03 / Responsibility map. The component reports what happened; the application decides what that means for its workflow.

I want lifecycle events to be explicit: becoming eligible, appearing, being viewed, skipping or dismissing, completing, and replaying. Those are different moments. Eligibility belongs to the application; the component’s event contract should make its interactions observable without absorbing business-specific rules.

“It appeared” does not tell us that someone read it. “Completed” does not prove that the guidance helped them complete their task. Those distinctions belong in the design conversation before anyone builds a dashboard.

Field note 05

Design and code need to agree on the moving parts.

I worked through Figma variants, content and step configurations, replaceable media, and editable text to align the design with the implementation. The goal was to make the intended flexibility concrete: what can change, what stays consistent, and what happens when the content is less tidy than the example.

The React implementation included a typed API, configurable content and media, walkthrough navigation, dismissal and completion behavior, keyboard interactions, focus management, and responsive layouts. It also included automated tests, Storybook examples, and documentation.

That work made the composition easier to discuss as a system of behavior. A polished default state is only one example. Longer text, different step counts, changed media, narrow screens, and keyboard use all deserve attention.

AI could help connect those details across design, code, examples, and documentation. I retained responsibility for pattern selection, reuse boundaries, validation needs, and acceptance.

Field note 06

A green build is a checkpoint.

In my development workflow, the automated tests and the production and Storybook builds passed. That is my account of the implementation work; this article is not an independent audit of those logs.

Those checks mattered. They did not establish that people understood the guidance, needed it, or could complete their task more successfully because of it. Technical verification and user validation answer different questions.

The next questions I would bring to validation are practical: can someone understand the next step, skip without confusion, recover their place, and continue their real work? Does the guidance remove friction, or add it? I’m not presenting adoption, deployment, time savings, or business impact as outcomes here.

What I’m taking forward

AI can connect the work. Judgment still gives it direction.

The value for me was working across product, design, implementation, documentation, and verification. It helped me move between questions and a working composition, while keeping the decisions visible.

I’m learning to spend more care on the questions: should this exist, what can we reuse, who owns each behavior, and what evidence would tell us it helped? Those questions shape the component long before the screen looks finished.

Better questions. Clearer boundaries. More to learn.