predix-ui
Version:
px-* web components as React styled components
35 lines (29 loc) • 712 B
Markdown
The following components are used in demos.
Use the `<DeviceLayoutViewer/>` view a page on different device layouts.
```code
const {DeviceLayoutViewer} = DemoHelpers;
const url = 'https://app-shell.run.aws-usw02-pr.ice.predix.io';
<DeviceLayoutViewer
device="all"
src={url}/>
```
Use the `<DeviceView/>` to display a page on a device layout.
```react
const {DeviceView} = DemoHelpers;
const url = 'https://app-shell.run.aws-usw02-pr.ice.predix.io';
const style = {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
padding: 5
};
<div style={style}>
<DeviceView
landscape
device="phone"
src={url}/>
</div>
```