Skip to main content

Device Display API

Properties
NameTypeDefaultDescription
widthnumber—Width of the device frame in pixels. Aspect ratio is maintained.
heightnumber—Height of the device frame in pixels. Aspect ratio is maintained.
typestring—Device shape. Currently supports 'iphone' and 'computer'.
focus-disabledbooleanfalsePrevents keyboard focus on any element inside the device frame.