akkudoktoreos.server.dash.components.TextView
- akkudoktoreos.server.dash.components.TextView(*c: Any, cls: str | tuple | None = None, **kwargs: partial(<function ft at 0x7a21754a1da0>, 'pre', void_=False)
Render plain text with preserved line breaks and wrapped long lines.
This view uses a <pre> element with whitespace wrapping enabled so that newline characters are respected while long lines are wrapped instead of causing horizontal scrolling.
- Parameters:
*c (Any) – Positional arguments representing the TextView content.
cls (Optional[Union[str, tuple]]) – Additional CSS classes for styling. Defaults to None.
**kwargs (Any) – Additional keyword arguments passed to the Pre.
- Returns:
A FastHTML Pre element that displays the text with preserved formatting and line wrapping.