Usage notes
Use `rootProps` on the drop surface, then render the feedback fields in
timeline chrome such as target-row highlighting, invalid-drop messages, or a
preview badge. `lastResult` keeps the last command outcome available after
hover feedback clears.
Signature
Interface UseTimelineExternalClipDropResultType parameters
| Name | Constraint | Default | Description |
|---|---|---|---|
TrackKind | None | string | App-defined track kind values carried by the current target track. |
Properties
| Name | Signature | Description |
|---|---|---|
clearDropFeedback | (): void | Clears current hover feedback while preserving the last result. |
dragging | dragging: boolean | Whether an external drag is currently over the drop surface. |
dropSeconds | dropSeconds: number | null | Timeline seconds under the pointer, when a track is resolved. |
dropTime | dropTime: RationalTime | null | Timeline time under the pointer, when a track is resolved. |
hoveredTrackId | hoveredTrackId: string | null | Track currently under the pointer, including invalid targets. |
lastResult | lastResult: TimelineCommandResult<TimelineEditCommitResult> | null | Last committed or rejected drop result. |
reason | reason: TimelineCommandFailureReason | null | Machine-readable reason for invalid feedback. |
rootProps | rootProps: TimelineExternalClipDropRootProps | Props for the element that should accept native external drops. |
targetTrack | targetTrack: Track<TrackKind> | null | Valid target track currently accepting the payload. |
targetTrackId | targetTrackId: string | null | Valid target track id currently accepting the payload. |
valid | valid: boolean | Whether the current external payload can be dropped. |