import mql from '@microlink/mql' const { data } = await mql('https://www.apple.com/music', { screenshot: { overlay: { background: "linear-gradient(225deg, #FF057C 0%, #8D0B93 50%, #321575 100%)", browser: "dark" } } })
overlay
Type: <object>
It creates a beauty screenshot composition using a browser overlay over the target url.
An overlay is specified as
browser
theme, being 'light'` and 'dark' supported.Additionally, you can setup a
background
color, where the color can be defined as:- An hexadecimal/rgb/rgba color code (e.g.,
'#F76698'
). - A CSS gradient(e.g.,
'linear-gradient(0deg, #330867 0%, #30CFD0 100%)'
). - An image url (e.g.,
'https://source.unsplash.com/random/1920x1080'
).