Skip to main content

Search rules

Search all UI Guides rules by name, category, or source

interactionsVercel

Clean Drag Interactions

MUST

MUST: During drag, disable text selection and set `inert` on dragged element/containers

Disable text selection and apply inert during drag operations

Bad

Good

Why it matters

When dragging elements, prevent text selection and disable hover/interaction states on other elements using the inert attribute. This prevents confusing visual states where content appears selected or hovered while being dragged.

Built by Gleb Stroganov, design engineer at Evil Martians.

The rules come from other people's skills and guidelines — Vercel, Rauno Freiberg, @Ibelick, impeccable, Emil Kowalski, Tailwind, RAMS — each one credited on the Sources page. The work here is extraction and wiring: every rule is pulled into one corpus, given a good and a bad example you can operate, a MUST/SHOULD/NEVER rule an agent can paste, and a link back to where it came from.