0.5.5 • Published 6 years ago

vue-device v0.5.5

Weekly downloads
13
License
ISC
Repository
github
Last release
6 years ago

vue-device

npm npm vue2

Display your app in a device sized window. Perfect for sharing with clients.

The window is ignored on mobile and tablet devices, including Chrome/Safari Developer Tools

Demo

https://normally.github.io/vue-device/

Install

yarn add vue-device

Usage

import device from 'vue-device'
export default {
  components: {
    device
  },
  ...
}

After that, wrap your app in the device tag:

<device>
	<app/>
</device>

Options

PropertyDefaultDescription
typeiPhone8Can be any of the available devices
background#FFFBackground color
landscapefalseDisplay the window in landscape mode
pickerfalseShow device picker above frame
autoscaletrueAlways fit the device in the browser window and scale the content
borderfalseShow a black border around the device
disabledfalseDisable altogether just as a desktop view
Example:
<device type='iPhone8' background='#444' autoscale='false' landscape picker border> ... </device>

Authors

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

7 years ago

0.5.0

7 years ago