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
Name | Description | Type | Default |
---|---|---|---|
text (required) | The text to display. | str | None |
size | The size of the text. | Literal["small", "medium", "large"] | 'medium' |
full_width | Whether the widget should take up the full width of its container. | bool | False |