Press.Style.Text (press v0.1.0)

Copy Markdown View Source

A styled text node, as produced by Press.Style.Cascade.build/3.

Text has no properties or selectors of its own, but still carries a computed map — a copy of whatever it inherited from its parent element — since properties like color/font-size must reach text for Layout to render it correctly.

Summary

Types

t()

A styled text node struct with computed inherited properties.

Types

t()

@type t() :: %Press.Style.Text{computed: map(), content: String.t()}

A styled text node struct with computed inherited properties.