Skip to content

API Reference / @gtkx/navigation / SplitViewNavigationConfig

Type Alias: SplitViewNavigationConfig ​

SplitViewNavigationConfig = object

Defined in: packages/navigation/src/split-view/types.ts:62

Props of the split view navigator beyond the options every navigator shares.

Properties ​

collapseCondition? ​

optional collapseCondition?: string

Defined in: packages/navigation/src/split-view/types.ts:71

An Adw.BreakpointCondition string, such as "max-width: 500sp", measured against the navigator's size. The panes collapse while it holds. libadwaita applies it during layout, before GTK moves focus, so widening the window does not reselect the focused sidebar row the way a collapsed prop set from a breakpoint handler can. Give the window a widthRequest and heightRequest, as for window breakpoints.


collapsed? ​

optional collapsed?: boolean

Defined in: packages/navigation/src/split-view/types.ts:64

Whether the panes stack into one instead of sitting side by side; defaults to false. Ignored while collapseCondition is set.


contentPlaceholder? ​

optional contentPlaceholder?: ReactNode

Defined in: packages/navigation/src/split-view/types.ts:73

Fills the content pane, below an untitled header bar, while no content route is open; defaults to nothing.


maxSidebarWidth? ​

optional maxSidebarWidth?: number

Defined in: packages/navigation/src/split-view/types.ts:79

Maximum sidebar width, in the unit libadwaita uses for the split view.


minSidebarWidth? ​

optional minSidebarWidth?: number

Defined in: packages/navigation/src/split-view/types.ts:77

Minimum sidebar width, in the unit libadwaita uses for the split view.


popOnEscape? ​

optional popOnEscape?: boolean

Defined in: packages/navigation/src/split-view/types.ts:83

Whether pressing Escape pops the visible content page; defaults to true.


sidebarPosition? ​

optional sidebarPosition?: "start" | "end"

Defined in: packages/navigation/src/split-view/types.ts:75

Which side the sidebar sits on; defaults to "start".


sidebarWidthFraction? ​

optional sidebarWidthFraction?: number

Defined in: packages/navigation/src/split-view/types.ts:81

Preferred sidebar width as a fraction of the total width.