Skip to content

API Reference / @gtkx/navigation / DrawerNavigationConfig

Type Alias: DrawerNavigationConfig

DrawerNavigationConfig = object

Defined in: packages/navigation/dist/drawer/types.d.ts:61

Props of the drawer navigator beyond the options every navigator shares.

Properties

collapsed?

optional collapsed?: boolean

Defined in: packages/navigation/dist/drawer/types.d.ts:65

Whether the sidebar overlays the content instead of sitting beside it; defaults to false.


drawerContent?

optional drawerContent?: (props) => ReactNode

Defined in: packages/navigation/dist/drawer/types.d.ts:63

Renders the sidebar; defaults to a header bar above a DrawerItemList.

Parameters

props

DrawerContentProps

Returns

ReactNode


maxSidebarWidth?

optional maxSidebarWidth?: number

Defined in: packages/navigation/dist/drawer/types.d.ts:73

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


minSidebarWidth?

optional minSidebarWidth?: number

Defined in: packages/navigation/dist/drawer/types.d.ts:71

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


pinSidebar?

optional pinSidebar?: boolean

Defined in: packages/navigation/dist/drawer/types.d.ts:69

Whether collapsing and uncollapsing leave the sidebar's visibility alone; defaults to false.


sidebarPosition?

optional sidebarPosition?: "start" | "end"

Defined in: packages/navigation/dist/drawer/types.d.ts:67

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


sidebarWidthFraction?

optional sidebarWidthFraction?: number

Defined in: packages/navigation/dist/drawer/types.d.ts:75

Preferred sidebar width as a fraction of the total width.

Released under the MPL-2.0 License.