Component: Text — goUI

Text

Componente de texto genérico com suporte a qualquer tag HTML e reatividade via Watch/Bind.

go
components.Text("Título H1", "h1")
components.Text("Título H2", "h2")
components.Text("Título H3", "h3")
components.Text("Título H4", "h4")

Título H1

Título H2

Título H3

Título H4

Argumentos

ArgumentoTipoDescrição
contentstring / SyncSourceTexto estático ou fonte reativa (Input, etc.).
tagstringTag HTML: h1…h6, p, span, label, strong…
Classcomponents.ClassClasses utilitárias de cor ou espaçamento.
Stylecomponents.StyleEstilos CSS inline.
Watch(src, action)WatchOptionSincroniza com um Input: WatchText, WatchColor, etc.
Bind(template, sources)BindOptionInterpola múltiplos inputs num template.