You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-core/src/components/Drawer/examples/Drawer.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ propComponents:
13
13
DrawerCloseButton,
14
14
DrawerPanelDescription,
15
15
DrawerPanelBody,
16
-
DrawerPanelFocusTrapObject,
16
+
DrawerPanelFocusTrapObject
17
17
]
18
18
section: components
19
19
---
@@ -156,3 +156,11 @@ To customize which element receives focus when the drawer panel expands, use the
156
156
```ts file="./DrawerPillInline.tsx"
157
157
158
158
```
159
+
160
+
### Viewport
161
+
162
+
Use `isViewport` to position the drawer as `fixed` so it fills the viewport. Place the drawer after `<Page>` as a sibling. Omit children of `<DrawerContent>` so the content container stays empty; the empty container is still required so the panel can overlay the page.
0 commit comments