Headless toolbar
Build your own toolbar UI while SuperDoc provides the state and the commands.

createHeadlessToolbar returned a controller for a SuperDoc instance with three parts: a snapshot of command state
(active, disabled, value), a subscription for updates, and a typed execute function. It covered 38
commands across text formatting, font, paragraph, document, track changes, tables, and images. Payloads were typed
per command, so a wrong execute payload failed to compile.
The snapshot's context reported the active surface (body, header, or footer), and execute dispatched to it.
React and Vue hooks handled subscription and cleanup.