Function

useTimelineClipDropFeedback

Subscribes to live cross-track clip drop feedback.

Usage notes

This is a focused live interaction hook intended for custom drag affordances. It subscribes to `clip:drop-feedback` instead of the broad provider snapshot, so components can react while the pointer crosses tracks without turning the entire editor shell into drag-time React state.

Signature

Type Definition
useTimelineClipDropFeedback(): UseTimelineClipDropFeedbackResult

Returns

Current clip drag feedback and convenience fields for custom UI.

Examples

tsx Example
import { useTimelineClipDropFeedback } from '#react/hooks';
export function DropStatus() {
const feedback = useTimelineClipDropFeedback();
if (!feedback.hasFeedback) {
return null;
}
return (
<p role="status">
{feedback.valid ? 'Drop to move clip' : `Cannot drop here: ${feedback.feedback.reason}`}
</p>
);
}