Skip to content

Header

Header

Bases: Widget

A header widget with icon and clock.

tall class-attribute

Track if the Header is in a tall state or not.

__init__(show_clock=False, *, name=None, id=None, classes=None)

Initialise the header widget.

Parameters:

Name Type Description Default
show_clock bool

True if the clock should be shown on the right of the header.

False
name str | None

The name of the header widget.

None
id str | None

The ID of the header widget in the DOM.

None
classes str | None

The CSS classes of the header widget.

None