Every interface element has a job. Some organize information. Some invite an action. Others tell you what just happened. Start with the visual, try the behavior, then inspect the idea behind it.
LIVE DEMO FIELD NOTE DOM / CODE
01CONTROLS · ACTION & CHOICE
Give the interface a job.
Controls let people do something: commit an action, change a setting, or choose a value.
SPECIMEN 001—003
01A · BUTTONSACTION CONTROL
Buttons do things. Use a link when the destination changes; use a button when something happens here.
01B · CHIPSLABEL / FILTER
Tap a chip to remove it. This one is interactive.
Chips are compact tokens. They can label, filter, select, or be removed.
01C · SWITCHON / OFF SETTING
Quiet hoursMute non-urgent updates
Enabled aria-checked="true"
A switch changes a setting. Its label describes what turns on—not “yes” or “no.”
02FORMS · INPUT & RESPONSE
Ask for just enough.
A good form makes the next step clear, labels every field, and helps people recover from mistakes.
SPECIMEN 004
02A · TEXT FIELD + VALIDATIONLOCAL-ONLY FORM
Label + control + help + feedback. The browser keeps your value; this page makes no network request.
03OVERLAYS · CONTEXT & FOCUS
Bring something forward.
Overlays sit above page content. Their size, focus behavior, and interruption level should match the task.
SPECIMEN 005—006
03A · MODAL DIALOGFOCUSED TASK
◎Make space for a decision.A dialog focuses attention on one task.
Modal means the page is blocked. Escape closes; focus returns to the trigger.
03B · POPOVERANCHORED DETAIL
Popover is anchored, not blocking. Don’t make a tooltip carry a whole interaction.
04NAVIGATION · SWITCH & REVEAL
Change the view. Keep your bearings.
Navigation and disclosure patterns change what is visible or where someone is going. Those are related, but not interchangeable.
SPECIMEN 007—008
04A · TABSPEER PANELS
01
A tab changes the panel.
Each tab reveals a different view within this same context.
Tabs switch peer content. Links take you somewhere else.
04B · ACCORDIONINLINE DISCLOSURE
What does “responsive” mean?
The layout adapts to the available space and input method while keeping content and actions usable.
Can multiple panels stay open?
Yes. Native disclosure elements can open independently, or a custom pattern can enforce one-at-a-time behavior.
An accordion reveals in place. Great for optional detail, not for hiding essential context.
04C · BREADCRUMBYOU ARE HERE
Hierarchy in a small space. The current page is text, not a link.
Breadcrumbs show location. They help people move up a hierarchy.
05FEEDBACK · STATE & STATUS
Tell people what happened.
Feedback closes the loop. A tiny acknowledgment can prevent uncertainty; a persistent problem needs more than a fleeting toast.
SPECIMEN 009
05A · TOAST / SNACKBARTRANSIENT FEEDBACK
✓
Saved just nowYour changes are up to date.
Toast: brief and non-blocking. Don’t put essential instructions in a message that disappears.
Success Warning Error LoadingStatus needs words—not color alone.
06STRUCTURE · LAYOUT & DOM
Under the surface, a tree.
The DOM is the browser’s live document structure. CSS arranges it; semantics give it meaning; JavaScript gives it behavior.
SPECIMEN 010—011
06A · RESPONSIVE CONTAINERRESIZE THE FRAME
DRAG TO RESIZE
MAX-WIDTH CONTAINERContent gets room to breathe.
A wrapper constrains line length on wide screens, then gives way as the viewport narrows.
A container is not automatically a card. Sometimes it just sets a readable boundary.
06B · SEMANTIC DOMSTRUCTURE ≠ APPEARANCE
document
<body>
<header>brand + navigation
<main>
<section>heading + content
<form>label + input + button
<footer>related links
HTML
A page has a shape.
Use elements for meaning, not just appearance. A <button> behaves like a button; a <div> is just a generic box until you add semantics and behavior.