API Reference / @gtkx/navigation / DrawerNavigationConfig
Type Alias: DrawerNavigationConfig
DrawerNavigationConfig =
object
Defined in: packages/navigation/src/drawer/types.ts:101
Props of the drawer navigator beyond the options every navigator shares.
Properties
collapsed?
optionalcollapsed?:boolean
Defined in: packages/navigation/src/drawer/types.ts:105
Whether the sidebar overlays the content instead of sitting beside it; defaults to false.
drawerContent?
optionaldrawerContent?: (props) =>ReactNode
Defined in: packages/navigation/src/drawer/types.ts:103
Renders the sidebar; defaults to a header bar above a DrawerItemList.
Parameters
props
Returns
ReactNode
maxSidebarWidth?
optionalmaxSidebarWidth?:number
Defined in: packages/navigation/src/drawer/types.ts:113
Maximum sidebar width, in the unit libadwaita uses for the split view.
minSidebarWidth?
optionalminSidebarWidth?:number
Defined in: packages/navigation/src/drawer/types.ts:111
Minimum sidebar width, in the unit libadwaita uses for the split view.
pinSidebar?
optionalpinSidebar?:boolean
Defined in: packages/navigation/src/drawer/types.ts:109
Whether collapsing and uncollapsing leave the sidebar's visibility alone; defaults to false.
sidebarPosition?
optionalsidebarPosition?:"start"|"end"
Defined in: packages/navigation/src/drawer/types.ts:107
Which side the sidebar sits on; defaults to "start".
sidebarWidthFraction?
optionalsidebarWidthFraction?:number
Defined in: packages/navigation/src/drawer/types.ts:115
Preferred sidebar width as a fraction of the total width.