Attribute bindings
AttrPartNodeclass
Represents a dynamic attribute (e.g.
src="${url}").
Attribute syntax
Attributetype-alias
Represents every static or dynamic attribute-like AST node.
AttributeNodeclass
Represents a static attribute (e.g.
class="foo").
Boolean attributes
BooleanNodeclass
Represents a boolean attribute (e.g.
disabled).BooleanPartNodeclass
Represents a dynamic boolean attribute (e.g.
?disabled="${isDisabled}").
Class contributions
ClassNamePartNodeclass
Represents a dynamic class name part (e.g.
class="${classes}").SparseClassNameNodeclass
Represents a sparse class name (e.g.
class="foo ${bar}").
Comment bindings
CommentPartNodeclass
Represents a dynamic comment part.
Comment content
Commenttype-alias
Represents static, dynamic, or sparse comment content.
CommentNodeclass
Represents a static comment.
Dataset contributions
DataPartNodeclass
Represents a data attribute part (e.g.
data-foo="${value}").
Document structure
DocTypeclass
Represents a parsed DOCTYPE declaration.
Dynamic child positions
NodePartclass
Represents a dynamic insertion point within the node structure (e.g.
<div>${content}</div>).
Dynamic positions
PartNodetype-alias
Represents a single dynamic interpolation part in the template AST.
Element references
RefPartNodeclass
Represents a reference capture (e.g.
ref="${ref}").
Element structure
ElementNodeclass
Represents an HTML, SVG, MathML, or foreign-content element with children.
ParentNodetype-alias
Represents an AST node that can structurally contain template children.
SelfClosingElementNodeclass
Represents a self-closing HTML element (e.g.
<br />,<img />).
Native event bindings
EventPartNodeclass
Represents an event listener part (e.g.
@click="${handler}").
Property bindings
PropertyPartNodeclass
Represents a property assignment (e.g.
.value="${value}").
Sparse attributes
SparseAttrNodeclass
Represents a sparse attribute (e.g.
class="foo ${bar}").
Sparse comments
SparseCommentNodeclass
Represents a sparse comment.
Sparse expressions
SparsePartNodetype-alias
Represents a “sparse” part, which is a text or attribute value composed of mix of static text and dynamic parts (e.g.
id="prefix-${id}").
Sparse text
SparseTextNodeclass
Represents sparse text content (e.g.
Hello ${name}!).
Spread bindings
PropertiesPartNodeclass
Represents a spread of properties (e.g.
${...props}).
Template structure
Text bindings
TextPartNodeclass
Represents a dynamic text part (e.g.
${text}).
Text content
Text contexts
TextOnlyElementclass
Represents an element that contains only text (e.g.
<script>,<style>).