Pull @ohif/ui ViewportPane into separate component and expose

This commit is contained in:
dannyrb authored and James A. Petts committed 2020-05-15 14:05:54 +02:00
1 parent f319092b84
commit fe57becb2c
4 files changed
+91

No files matched your search

@@ -0,0 +1,33 @@
---
name: ViewportPane
menu: General
route: components/viewport-pane
---
import { Playground, Props } from 'docz';
import { ViewportGrid, ViewportPane } from '@ohif/ui';
# ViewportPane
Used to display viewports in the viewer page.
## Import
```javascript
import { ViewportPane } from '@ohif/ui';
```
## Basic usage
<Playground>
<div className="p-4 h-56">
<ViewportGrid>
<ViewportPane><h3>Hello</h3></ViewportPane>
<ViewportPane><h3>World</h3></ViewportPane>
</ViewportGrid>
</div>
</Playground>
## Properties
<Props of={ViewportPane} />