Skip to content

API reference / @docmentis/udoc-node / TextBindingLevel

Type Alias: TextBindingLevel ​

ts
type TextBindingLevel = "span" | "block";

The level a binding place in text is at: around content within a paragraph, a TextSpan binding place, or around whole paragraphs, a TextBlock one — a variable is always a span. Not stored: the node holding its markup says it. A host places a span's brackets along its text and a block's at the sides of its paragraphs.