This page is available as Markdown at /api/toolbar/functions/useannotationbutton.md.
For the full documentation index, see /llms.txt, or
the complete corpus at /llms-full.txt.
useAnnotationButton
useAnnotationButton(
props):AnnotationButton
Defined in: toolbar/src/use-annotation-button.ts:297
Manages the state, keyboard shortcut and available events for an annotation button.
Note: This hook assumes that the button triggers a dialog for inputting the annotation value.