Files
ohif-viewer/platform/ui/src/components/ViewportGrid/ViewportGrid.mdx
T

39 lines
761 B
Plaintext
Raw Normal View History

2020-04-13 07:44:38 -03:00
---
name: ViewportGrid
menu: General
route: components/viewportGrid
---
import { Playground, Props } from 'docz';
2020-05-18 17:21:57 +02:00
import { DragAndDropProvider, ViewportGrid } from '@ohif/ui';
2020-04-13 07:44:38 -03:00
# ViewportGrid
2020-04-13 13:48:45 -03:00
Used to display viewports in the viewer page.
2020-04-13 07:44:38 -03:00
## Import
```javascript
import { ViewportGrid } from '@ohif/ui';
```
## Basic usage
<Playground>
2020-05-18 17:21:57 +02:00
<DragAndDropProvider>
2020-04-13 07:44:38 -03:00
<div className="p-4 h-56">
2020-05-14 21:31:28 -04:00
<ViewportGrid numRows={1} numCols={2}>
<div className="flex items-center justify-center h-full text-white">
Viewport1
</div>
<div className="flex items-center justify-center h-full text-white">
Viewport2
</div>
</ViewportGrid>
2020-04-13 07:44:38 -03:00
</div>
2020-05-18 17:21:57 +02:00
</DragAndDropProvider>
2020-04-13 07:44:38 -03:00
</Playground>
## Properties
<Props of={ViewportGrid} />