ui.toast_header

ui.toast_header(title, *args, icon=None, status=None, **kwargs)

Create a structured toast header.

Parameters

title : TagNode

Header title text or HTML element.

*args : TagChild | TagAttrs = ()

Additional content to append to title.

icon : Optional[TagNode] = None

Optional icon element.

status : Optional[str] = None

Optional status text (appears muted/right-aligned, e.g., “just now”).

****kwargs** : TagAttrValue = {}

Additional HTML attributes for the header element.

Returns

: ToastHeader

A toast header object.

Examples

See toast for a complete example, including a toast with a header.

See Also