Skip to content

Customize - Handles & Previews

With UseHandle="true" a draggable can only be picked up by a nested <BdndDragHandle>. The rest of the element stays interactive. Compare the two boxes below: the first drags from anywhere, the second only from its grip. The preview stays whole: the browser would picture only the element a drag starts from - the grip - and Bdnd hands it the whole box as the drag image instead. The grip is also what the keyboard picks the box up from: a focusable button, named after the box's Label and styled here through its data-bit-bdnd-handle attribute. The third box drags from anywhere but its text field, where a press selects text as in any field - and text selected there drags as text, not as the box.

Drag me from anywhere
⠿
Only the grip drags me
Drag me, or edit my note
Drop a box here
An unhandled error has occurred. Reload 🗙