Skip to content

Commit f1def5a

Browse files
committed
Improved build + browser build
1 parent 75334bb commit f1def5a

File tree

17 files changed

+10021
-3307
lines changed

17 files changed

+10021
-3307
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default {
2828
...
2929
}
3030
```
31+
3132
After that, wrap your app in the device tag:
3233

3334
```html
@@ -36,21 +37,24 @@ After that, wrap your app in the device tag:
3637
</device>
3738
```
3839

39-
## Additional Options
40+
## Options
4041

41-
Property | Default | Description
42-
:--- |:--- |:---
43-
`type` | iPhone8 | Can be any of the [available devices](DEVICES.md)
44-
`background` | #FFF | Background color
45-
`landscape` | false | Display the window in landscape mode
46-
`picker` | false | Show device picker above frame
47-
`autoscale` | true | Always fit the device in the browser window and scale the content
48-
`border` | false | Show a black border around the device
42+
| Property | Default | Description |
43+
| :----------- | :-------- | :---------------------------------------------------------------- |
44+
| `type` | `iPhone8` | Can be any of the [available devices](DEVICES.md) |
45+
| `background` | `#FFF` | Background color |
46+
| `landscape` | `false` | Display the window in landscape mode |
47+
| `picker` | `false` | Show device picker above frame |
48+
| `autoscale` | `true` | Always fit the device in the browser window and scale the content |
49+
| `border` | `false` | Show a black border around the device |
50+
| `disabled` | `false` | Disable altogether just as a desktop view |
4951

5052
##### Example:
53+
5154
```html
52-
<device type='iPhone8' background='#444' autoscale='false' landscape picker border/>
55+
<device type='iPhone8' background='#444' autoscale='false' landscape picker border> ... </device>
5356
```
5457

5558
## Authors
56-
- Nic Mulvaney - [Normally](http://normally.com)
59+
60+
* Nic Mulvaney - [Normally](http://normally.com)

0 commit comments

Comments
 (0)