Skip to content

Commit 0cbcbce

Browse files
committed
Move drawer to demos page
1 parent 470e464 commit 0cbcbce

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

packages/react-core/src/components/Drawer/examples/Drawer.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,3 @@ To customize which element receives focus when the drawer panel expands, use the
156156
```ts file="./DrawerPillInline.tsx"
157157

158158
```
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.
163-
164-
```ts file="./DrawerViewport.tsx" isFullscreen isBeta
165-
166-
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
id: Drawer
3+
section: components
4+
---
5+
6+
import { Fragment, useRef, useState } from 'react';
7+
8+
## Demos
9+
10+
### Expanded resizable viewport drawer
11+
12+
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.
13+
14+
```ts file="./examples/DrawerViewport.tsx" isFullscreen isBeta
15+
16+
```

packages/react-core/src/components/Drawer/examples/DrawerViewport.tsx renamed to packages/react-core/src/demos/Drawer/examples/DrawerViewport.tsx

File renamed without changes.

0 commit comments

Comments
 (0)