Raxol.Core.Renderer.View.Components.Text (Raxol v0.4.0)
View SourceHandles text rendering for the Raxol view system. Provides text styling, wrapping, and alignment functionality.
Summary
Functions
Creates a new text view.
Options
:fg
- Foreground color:bg
- Background color:style
- List of style atoms (e.g., [:bold, :underline]):align
- Text alignment (:left, :center, :right):wrap
- Text wrapping mode (:none, :char, :word)
Examples
Text.new("Hello, World!", fg: :red, style: [:bold])
Text.new("Centered text", align: :center)
Renders text with the given options and width.