Explore
Interaction catalogue
Start with the problem in your interface. Each helper has a live example, setup code, its cleanup contract and accessibility guidance.
29 helpers
Menus & navigation
Submenus, keyboard menus, link preloading and returning to a previous list position.
Hover & overlays
Hover previews, tooltips, popovers, outside clicks, scroll locking and dragging.
Hover & overlaysStart dragging after clear movement
dragIntent()Hover & overlaysKeep popovers inside the screenfloating()Hover & overlaysOpen a preview after a deliberate hoverhoverIntent()Hover & overlaysStop the page moving behind a dialoglockScroll()Hover & overlaysClose a popover after an outside clickoutsidePress()Hover & overlaysShow hints on toolbar buttonstooltipGroup()Forms & drafts
Field errors, input cleanup, draft recovery and unsaved-change warnings.
Forms & draftsRestore a form after an interruption
draftRecovery()Forms & draftsShow an error after someone edits a fieldfieldValidation()Forms & draftsMove to the first invalid fieldfocusInvalid()Forms & draftsClean up common input formattingnormalize()Forms & draftsWarn before leaving unsaved editsunsavedChanges()Search & loading
Responsive search, current results, useful loading states and deferred content.
Search & loadingSearch after typing pauses
debounce()Search & loadingIgnore outdated search responseslatestRequest()Search & loadingAvoid flashes from very short loading statesloadingIndicator()Search & loadingLoad content as it nears the screennearViewport()Search & loadingPrevent repeat submissions while savingsingleFlight()Search & loadingShow previous results while refreshingstaleCache()Feedback & undo
Instant updates, undo windows and screen-reader announcements.
Keyboard & motion
Keyboard focus, input type and motion preferences.
Keyboard & motionReturn focus to the dialog opener
captureFocus()Keyboard & motionDetect keyboard, mouse or touch inputinputModality()Keyboard & motionLet an animation reverse smoothlyinterruptibleMotion()Keyboard & motionFollow the reduced-motion settingmotionPreference()Keyboard & motionMove through a toolbar with arrow keysrovingFocus()