Function

useTimelineEditMode

Owns local edit-mode state for product toolbar chrome. The selected mode does not mutate engine state by itself. Compose it with `useTimelineEditCommands` to build and preview typed edit commands.

Signature

Type Definition
useTimelineEditMode(initialMode: TimelineEditMode = 'select'): UseTimelineEditModeResult

Parameters

NameTypeDescription
initialModeTimelineEditModeInitial edit mode. Defaults to `select`.

Returns

Current mode state and mode commands.