Device

Performant CSS device mockup with custom content

device-tw
Device screen

Customize

0.4
15px
3°

Props

imagestring

URL of the image displayed on the device screen

Default:"https://images.unsplash.com/photo-1579546929518-9e396f3cc809?w=800&q=80"
scalenumber

Scale factor for the device size (recommended range: 0.5 to 1.5)

Default:1
isScrollableboolean

Whether the screen content can scroll vertically (uses Lenis for smooth scrolling)

Default:false
enableParallaxboolean

Enable subtle parallax movement effect on hover

Default:true
parallaxStrengthnumber

Parallax movement strength in pixels

Default:15
enableRotateboolean

Enable subtle rotation effect on hover (includes Z-axis rotation)

Default:true
rotateStrengthnumber

Rotation strength in degrees

Default:3
autoAnimateboolean

Auto-animate with smooth simulated cursor movement in a figure-8 pattern

Default:false
classNamestring

Additional CSS classes for the wrapper element

Default:""
childrenReactNode

Custom content to display inside the device screen (overrides image prop)

Default:undefined