A useful UI interaction tells people what changed, what they can do next, and how to recover when something fails. Start with the trigger and the state that follows, then prototype feedback, loading, error, undo, and keyboard or touch behavior in Mockitt’s UI design workspace. Decorative motion can wait.

This guide uses one product-option example to show the complete interaction, then gives six patterns that are worth checking in a prototype. The goal is a reviewable state map, not a list of animation tricks.
Map the interaction before styling
Write the interaction as a short contract: trigger → immediate feedback → next state → recovery. For a size selector, the trigger is a tap or click, immediate feedback is the selected option, the next state is an availability check, and recovery is a clear message with another choice when the item is unavailable.
| State | What the user needs to see | Review question |
|---|---|---|
| Default | Available options and the current selection. | Can a first-time user tell where to start? |
| Pending | That the request is being checked and input is not lost. | Does the interface prevent a duplicate action? |
| Success | Confirmed choice and the next useful action. | Is the result specific enough to trust? |
| Error or unavailable | Reason, recovery action, and preserved input. | Can the user correct the problem without restarting? |
Create and review the state map
- Set the starting state. Choose the first screen and make the selected or unselected control obvious.
- Connect the trigger. Link the control to the next screen or component state and name the action in plain language.
- Add feedback. Include loading, success, error, and retry paths. If the action is destructive, add confirmation or undo.
- Preview on the intended device. Check tap targets, keyboard focus, reduced-motion behavior, and content at a narrow width.

Ask a reviewer to complete the interaction without explaining the intended animation. Note where they pause, tap twice, miss the error message, or lose their input. Those observations are more useful than a transition that merely looks smooth.
Six patterns worth checking
| Pattern | What to prototype | Common failure |
|---|---|---|
| Tab or segmented navigation | Selected state, content change, keyboard order, and deep-link return. | Selection changes visually but the content remains ambiguous. |
| Pull to refresh | Gesture threshold, progress, new data, and failure retry. | Refreshing removes the user’s place or gives no result. |
| Product configurator | Option dependency, unavailable choice, price or copy update, and reset. | A choice silently changes another field. |
| Sliding sidebar | Open, close, focus, outside click, and narrow-screen behavior. | The panel traps focus or hides the close action. |
| Coupon or offer banner | Eligibility, dismissal, expiry, and return after navigation. | The offer interrupts a task without a useful next step. |
| Animated navigation | Motion, reduced-motion fallback, focus order, and a stable destination. | Motion delays the task or obscures where the user landed. |
Check accessibility and recovery
For every trigger, test a pointer or touch input, keyboard focus, visible focus indicator, readable status message, and a reduced-motion path. Keep the message close to the affected control and preserve entered data when the request fails. A disabled control should explain why it is unavailable or provide another route.
Do not describe an interaction as “delightful” until it is understandable under a slow connection, a small viewport, and an error condition. A short prototype with these states gives product, design, and engineering a shared decision record.
Handoff the decision
- Name each state and trigger in the prototype.
- Attach the accepted copy, assets, and validation rules to the reviewed state.
- Record unresolved behavior, including loading time assumptions and recovery ownership.
- Share the starting screen and ask a second person to replay the route before implementation.
Write a review note engineering can use
Once the route is accepted, write the behavior in the same order a person experiences it. Start with the trigger, name the visible response, describe the next state, and finish with recovery. Avoid phrases such as “make it feel smooth” when the team needs a testable requirement.
| Behavior note | Example for the product-option flow |
|---|---|
| Trigger | Choose a size with pointer, touch, or keyboard focus. |
| Immediate response | Mark the selected size and keep the other options available. |
| Pending | Show that availability is being checked and prevent duplicate submits. |
| Result | Confirm availability and expose the next action. |
| Recovery | Explain that the size is unavailable, preserve the selection, and offer another choice. |
Attach the note to the reviewed state and include the viewport, input method, and copy version. A developer can then implement the behavior without guessing which frame or screenshot was authoritative.
Test before you call it done
Use a short replay rather than a checklist that only inspects the canvas. Ask one person to start from the entry screen and complete the task on a narrow viewport. Ask another person to trigger the error or unavailable state. Compare what each person expected with what the prototype communicated.
- Replay the normal route without narration.
- Repeat it with keyboard focus or touch input.
- Trigger a slow or failed response and check that input is preserved.
- Confirm the reduced-motion path still communicates the state change.
- Record the accepted behavior and the owner of any open question.
Use the interaction design guide when the work expands beyond one component. The best UI interaction is the one that makes the next action clear and leaves the user a way back.



