separator()

The separator function is a simple component that adds a visual break (new line) in your app. It’s useful for organizing content or separating different sections for better readability.

Parameters

This component takes no parameters.

Usage Example

Here’s how to use the separator function:

from preswald import separator

# Add a separator to break content
print("Section 1 Content")
separator()
print("Section 2 Content")
  • Clean Layout: Adds a clear visual break to structure your app’s content.
  • Simple to Use: No configuration needed—just call the function.