Interaction guidance
Working examples of common application interactions.
These live examples show how application-owned HTML can apply Primer roles and guidance. They are demonstrations, not exported components. Applications own routing, persistence, validation, and implementation.
EXAMPLE COLLECTION
A quiet workspace
A flexible header with room for context and actions.
Controls
More information
Helpful context in a nonmodal popover. Escape or click outside to dismiss.
Example items
Review the interaction
Section titled “Review the interaction”Use native controls where possible. Give icon actions accessible names, retain visible focus, and provide targets at least 44px for touch. Keep secondary actions available without hover. Menus need arrow-key navigation and Escape; dialogs need a name, contained focus, Escape and focus return. Show validation next to the field and associate it programmatically. On narrow screens, preserve the same actions and reading order.
See the component guidance and specs for anatomy, states and role mappings.