Text Component Referencetml`<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.
Text component accepts the standard attributes.text (required)The Text component ignores all children.
Text Component will render a <span> if attributes are set, or a DOM TEXT node otherwise.