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?
optionalcollapseCondition?: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?
optionalcollapsed?: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?
optionalcontentPlaceholder?: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?
optionalmaxSidebarWidth?:number
Defined in: packages/navigation/src/split-view/types.ts:79
Maximum sidebar width, in the unit libadwaita uses for the split view.
minSidebarWidth?
optionalminSidebarWidth?:number
Defined in: packages/navigation/src/split-view/types.ts:77
Minimum sidebar width, in the unit libadwaita uses for the split view.
popOnEscape?
optionalpopOnEscape?:boolean
Defined in: packages/navigation/src/split-view/types.ts:83
Whether pressing Escape pops the visible content page; defaults to true.
sidebarPosition?
optionalsidebarPosition?:"start"|"end"
Defined in: packages/navigation/src/split-view/types.ts:75
Which side the sidebar sits on; defaults to "start".
sidebarWidthFraction?
optionalsidebarWidthFraction?:number
Defined in: packages/navigation/src/split-view/types.ts:81
Preferred sidebar width as a fraction of the total width.