Skip to content

API Reference / @gtkx/navigation / SplitViewNavigationConfig

Type Alias: SplitViewNavigationConfig ​

SplitViewNavigationConfig = object

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

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

Properties ​

collapsed? ​

optional collapsed?: boolean

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

Whether the panes stack into one instead of sitting side by side; defaults to false.


contentPlaceholder? ​

optional contentPlaceholder?: ReactNode

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

Fills the content pane while no content route is open; defaults to nothing.


maxSidebarWidth? ​

optional maxSidebarWidth?: number

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

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:69

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:75

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:67

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


sidebarWidthFraction? ​

optional sidebarWidthFraction?: number

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

Preferred sidebar width as a fraction of the total width.