Skip to main content

TextOutput

Text output widget for displaying plain text.

Examples

Basic Usage

This example runs a form with a single page containing the widget

Example Code

from abstra.forms import TextOutput, run

# Create a page with the widget
example_page = [
TextOutput(text="Hello World!"),
]

# Run the form
result = run([example_page])

# Print the result
print(result)

Parameters

NameDescriptionTypeDefault
text (required)The text to display.strNone
sizeThe size of the text.Literal["small", "medium", "large"]'medium'
full_widthWhether the widget should take up the full width of its container.boolFalse