Long Press Action
Use for contextual selection or preview where a deliberate hold is useful but not essential.
Live example
Try the interaction before reading the recipe.
real component · keyboard-safe
Purpose
Use for contextual selection or preview where a deliberate hold is useful but not essential.
Use when
Mobile users benefit from a contextual action on a row or media item.
Avoid
Making delete, checkout, or other critical actions reachable only by holding.
Accessibility
Offer click, Enter/Space, and context-menu alternatives; cancel on leave/cancel and label the action.
Keyboard and touch
Duration is configurable, movement/release cancels, and the button remains the semantic source.
Reduced motion and performance
Use one cleaned timer and no permanent animation; optional vibration is host-owned.
Composition and anti-patterns
Pair with a visible menu or selection model for discoverability.
Source: packages/skills/mobile/long-press-action.md