Text Component Reference

Table of Contents


Introduction

Syntax

tml`<Text text="my text" .../>`
tml`<String text="my text" .../>`

The Text component creates a with inline text. The text attribute contains the string to be displayed. The normal component build process will convert template stings to Text components so, normally templates returned by the render() method need not use Text components.

A String component is an alias for a Text component.

Note: The text is represented by a DOM text node. If any standard attribute is supplied, then the text node is wrapped in a to accept the CSS class string.

Attributes

Children

The Text component ignores all children.

DOM element properties