# @draggable

The draggable directive implements a common drag-and-drop function which is commonly used in dialog components.

# Examples

# Draggable dialog

# Draggable dialog header

# Non-draggable area

Sometimes, a draggable dialog box may contain components that have their own drag function(e.g., slider). At this point, if the drag function does not stop dragging events from propagating to the outer layer, the overall interaction will be affected. To solve this problem, you can mark the component with @stop-drag to prevent the inner component drag function. Here is the code example: