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?
optionalcollapsed?: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?
optionaldrawerContent?: (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
Returns
ReactNode
maxSidebarWidth?
optionalmaxSidebarWidth?:number
Defined in: packages/navigation/dist/drawer/types.d.ts:73
Maximum sidebar width, in the unit libadwaita uses for the split view.
minSidebarWidth?
optionalminSidebarWidth?:number
Defined in: packages/navigation/dist/drawer/types.d.ts:71
Minimum sidebar width, in the unit libadwaita uses for the split view.
pinSidebar?
optionalpinSidebar?: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?
optionalsidebarPosition?:"start"|"end"
Defined in: packages/navigation/dist/drawer/types.d.ts:67
Which side the sidebar sits on; defaults to "start".
sidebarWidthFraction?
optionalsidebarWidthFraction?:number
Defined in: packages/navigation/dist/drawer/types.d.ts:75
Preferred sidebar width as a fraction of the total width.