Skip to content

API Reference / @gtkx/navigation / StackNavigationOptions

Type Alias: StackNavigationOptions ​

StackNavigationOptions = HeaderOptions & object

Defined in: packages/navigation/dist/stack/types.d.ts:28

Per-screen options of the stack navigator.

Type Declaration ​

animation? ​

optional animation?: "default" | "none"

Whether pushing and popping this page animates; defaults to "default".

canPop? ​

optional canPop?: boolean

Whether the user can pop this page with the back button, Escape, Alt+Left or a swipe; defaults to true.

optional header?: (props) => ReactNode

Renders a custom top bar instead of the default AdwHeaderBar.

Parameters ​

props ​

StackHeaderProps

Returns ​

ReactNode

headerBackVisible? ​

optional headerBackVisible?: boolean

Whether the default header bar shows Adwaita's back button; defaults to true.