New to wireframes? Start with UI Customization Concepts and the Template Variables overview.
Overview
The Text Comment wireframe powers the small floating toolbar that appears next to selected text. Variables below are available inside any<velt-text-comment-...-wireframe> tag via three forms:
All variables are mapped — reference them by their short name. You do not need the
componentConfig. prefix.
Naming conflicts — use full path. A few names collide with mappings used by Comment Dialog. Inside a Text Comment wireframe, prefer the explicit path on the right when reading these values:
Data State
Per-instance data: the active selection’s position, word / character counts, and the current user.UI State
Per-instance UI flags driven by the tool itself.Global config (read-only, internal).
shadowDom lives on an internal globalConfigSignal not exposed to wireframes — it is reflected onto each primitive’s local state, so use {parentLocalUIState.shadowDom} to read it.Common Props
Every Text Comment primitive accepts:
Signal inputs (for parent-child component composition):
[componentConfigSignal]— shared per-instance config signal (selection position, user, counts, allowed elements).[parentLocalUIState]— per-instance UI state signal (darkMode,variant,shadowDom).
Type Reference
Types referenced by the variables above are documented in Data Models:Subcomponents
Each subcomponent below has its own wireframe tag.text-comment-tool (root)
The root tool that renders next to a text selection.
- Public element:
<velt-text-comment-tool> - Wireframe tag:
<velt-text-comment-tool-wireframe>
- React / Next.js
- Other Frameworks
text-comment-toolbar
The toolbar wrapper that hosts the action buttons.
- Public element:
<velt-text-comment-toolbar> - Wireframe tag:
<velt-text-comment-toolbar-wireframe> - Children (own wireframes):
*-toolbar-comment-annotation,*-toolbar-copywriter,*-toolbar-generic,*-toolbar-divider.
text-comment-toolbar-comment-annotation
The “Comment” action button — clicking attaches a new annotation to the selected text.
- Public element:
<velt-text-comment-toolbar-comment-annotation> - Wireframe tag:
<velt-text-comment-toolbar-comment-annotation-wireframe>
text-comment-toolbar-copywriter
The “AI rewrite” / copywriter action button.
- Public element:
<velt-text-comment-toolbar-copywriter> - Wireframe tag:
<velt-text-comment-toolbar-copywriter-wireframe>
text-comment-toolbar-generic
A generic, customisable action position for an extra button.
- Public element:
<velt-text-comment-toolbar-generic> - Wireframe tag:
<velt-text-comment-toolbar-generic-wireframe>
text-comment-toolbar-divider
Vertical separator between toolbar items.
- Public element:
<velt-text-comment-toolbar-divider> - Wireframe tag:
<velt-text-comment-toolbar-divider-wireframe>
Deeply-Nested Wireframe Tags
Text Comment root tag
Related
- Text Comment Primitives — granular components shared across the tool and toolbar.
- Text Comment Tool Wireframes — composition reference for the tool wireframe.
- Text Comment Toolbar Wireframes — composition reference for the toolbar wireframe.
- Template Variables — overview of the
velt-data/velt-if/velt-classsystem.

