Primitive

Text

Typography primitive. Supports style variants: heading, body, caption. Emits span.ks-text.

Responsive Preview — viewport @media queries
Mobile · 375 px
Tablet · 768 px
Desktop · 1280 px
Container Tier (SM widget responsive system)
Container width
Live Preview (chrome-mode, container-tier knobs)
Heading (heading) Subheading Body text — default style Caption text (caption)
DSL usage
Text("Heading", style: .heading)
Text("Body text")
Text("Caption note", style: .caption)
Attributes
NameTypeDefaultDescription
contentStringText content
styleTextStylebodyheading | subheading | body | caption