Skip to content

HeaderOption

type HeaderOption = {
enabled?: boolean;
leftAction?: {
icon: HeaderIcon;
onClick: () => void;
};
rightAction?: {
icon: HeaderIcon;
onClick: () => void;
};
title?: {
enabled?: boolean;
text?: string;
};
};
optional enabled: boolean;

Enables or disables the header UI.


optional leftAction: {
icon: HeaderIcon;
onClick: () => void;
};

Configuration for an additional custom button on the left side of the header.

Name Type

icon

HeaderIcon

onClick()

() => void


optional rightAction: {
icon: HeaderIcon;
onClick: () => void;
};

Configuration for an additional custom button on the right side of the header.

Name Type

icon

HeaderIcon

onClick()

() => void


optional title: {
enabled?: boolean;
text?: string;
};

Configuration for header title display, which defaults to showing thread titles.

Name Type Description

enabled?

boolean

Default

true;

text?

string

Static text to show in the header title area. When not provided, the title of the current thread will be shown instead.