@@ -27,6 +27,12 @@ export interface PageProps extends React.HTMLProps<HTMLDivElement> {
27
27
notificationDrawer ?: React . ReactNode ;
28
28
/** Flag indicating Notification drawer in expanded */
29
29
isNotificationDrawerExpanded ?: boolean ;
30
+ /** Sets default drawer size */
31
+ drawerDefaultSize ?: string ;
32
+ /** Sets the minimum drawer size*/
33
+ drawerMinSize ?: string ;
34
+ /** Sets the maximum drawer size */
35
+ drawerMaxSize ?: string ;
30
36
/** Flag indicating if breadcrumb width should be limited */
31
37
isBreadcrumbWidthLimited ?: boolean ;
32
38
/** Callback when notification drawer panel is finished expanding. */
@@ -219,6 +225,9 @@ class Page extends React.Component<PageProps, PageState> {
219
225
notificationDrawer,
220
226
isNotificationDrawerExpanded,
221
227
onNotificationDrawerExpand,
228
+ drawerDefaultSize,
229
+ drawerMinSize,
230
+ drawerMaxSize,
222
231
isTertiaryNavWidthLimited,
223
232
skipToContent,
224
233
role,
@@ -310,7 +319,11 @@ class Page extends React.Component<PageProps, PageState> {
310
319
</ Component >
311
320
) ;
312
321
313
- const panelContent = < DrawerPanelContent > { notificationDrawer } </ DrawerPanelContent > ;
322
+ const panelContent = (
323
+ < DrawerPanelContent defaultSize = { drawerDefaultSize } minSize = { drawerMinSize } maxSize = { drawerMaxSize } >
324
+ { notificationDrawer }
325
+ </ DrawerPanelContent >
326
+ ) ;
314
327
315
328
return (
316
329
< PageContextProvider value = { context } >
0 commit comments