Skip to content
On this page

getSrcSetForMedia

Definition

Returns the srcset attribute for the image, for available breakpoints

Signature

ts
export function getSrcSetForMedia(media: Media): string 

Parameters

NameTypeDescription
media
Media
image object

Return type

ts
string
getSrcSetForMedia has loaded