topbar()

The topbar() function allows you to include a fixed topbar in your app.

Parameters

  • None

Returns

  • Returns a topbar component object

Usage Example

Here’s an example of how to use the topbar function:

from preswald import topbar

#add the topbar
topbar()

This will add the topbar to your app: