Skip to content
This page is available as Markdown at /api/toolbar/type-aliases/toolbarannotationschematype.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

ToolbarAnnotationSchemaType

ToolbarAnnotationSchemaType = AnnotationSchemaType & object

Defined in: toolbar/src/use-toolbar-schema.ts:133

optional defaultValues: Record<string, unknown>

optional icon: React.ComponentType

optional mutuallyExclusive: ReadonlyArray<AnnotationDefinition["name"]>

The annotations this annotation cannot coexist with. The list replaces the default rule that an annotation is mutually exclusive with itself:

  • Absent: the default applies (adding the annotation removes existing annotations of the same type in the selection).
  • []: exclusive with nothing, not even itself, so same-type annotations may overlap.
  • ['other']: exclusive with exactly the listed annotations. Include the annotation’s own name to keep self-exclusivity.

optional shortcut: KeyboardShortcut