Sub topic 9
Using Standard Components and Patterns
Assume you understand basic user flows, screen layouts, and common interface elements such as buttons, forms, menus, and dialogs. This chapter focuses on choosing standard components for a wireframe and applying them consistently.
Why standard components matter
A standard component is a reusable interface element with a known purpose and behavior. Examples include buttons, text fields, checkboxes, tabs, cards, alerts, and navigation bars.
Using familiar components helps people understand a screen without learning a new interface. It also gives designers and developers a shared vocabulary. A wireframe that says “primary button” communicates more than a rectangle labeled “click here.”
A pattern is a reusable solution for a larger interaction. For example, a checkout pattern may combine an address form, a payment method selector, an order summary, and a confirmation action.
Choose components based on the user’s task, not on decoration. A wireframe should answer these questions:
- What action can the user take?
- What information must the user provide?
- What choice must the user make?
- What feedback should the system show?
- What happens after the action?
Selecting the right component
Start with the smallest component that supports the interaction.
| User need | Suitable component | Common mistake |
|---|---|---|
| Choose one option | Radio buttons or a select menu | Using checkboxes for a single choice |
| Turn one setting on or off | Toggle switch or checkbox | Using a button with unclear state |
| Submit an action | Button | Making plain text look actionable |
| Move between related views | Tabs | Using tabs for unrelated destinations |
| Show supporting information | Card or expandable panel | Hiding essential information in a tooltip |
Use a button for an action, such as “Save address.” Use a link for navigation, such as “View order history.” Keeping this distinction clear improves both usability and accessibility.
Apply patterns consistently
Create a small component inventory before drawing several screens. Record the component name, purpose, states, and rules. Reuse the same component when the interaction is the same.
For example, a form may use:
<form aria-labelledby="profile-title">
<h1 id="profile-title">Edit profile</h1>
<label for="display-name">Display name</label>
<input id="display-name" name="display-name" required>
<button type="submit">Save changes</button>
<a href="/profile">Cancel</a>
</form>The label identifies the field, the button submits the form, and the link leaves the form without saving. These relationships should appear in the wireframe, even if visual styling is not yet defined.
Check component behavior
Represent repeated behavior with a consistent pattern:
flowchart TD
A[User sees component] --> B{Can the user act?}
B -->|Yes| C[User activates component]
B -->|No| D[Show disabled state and reason]
C --> E{Does the action succeed?}
E -->|Yes| F[Show result]
E -->|No| G[Show useful error and recovery]Annotate unusual behavior directly on the wireframe. For a modal dialog, specify whether the user can dismiss it by pressing Escape, clicking outside it, or selecting a cancel action. For a table, specify sorting, filtering, and what appears when no rows match.
Exercise
A settings screen needs one option where users can select several notification channels. Which component should the wireframe use, and what should it show?
Show answer
Use a group of checkboxes, one for each channel. Show selected and unselected states, and define what happens when the user saves the choices.