Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/astro-embed-youtube/YouTube.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface Props extends astroHTML.JSX.HTMLAttributes {
posterQuality?: 'max' | 'high' | 'default' | 'low';
params?: string;
playlabel?: string;
fetchpriority?: 'high' | 'low' | 'auto';
}

const {
Expand All @@ -16,6 +17,7 @@ const {
posterQuality = 'default',
title,
style,
fetchpriority = 'auto',
...attrs
} = Astro.props as Props;

Expand Down Expand Up @@ -47,6 +49,7 @@ if (posterURL) styles.push(`background-image: url('${posterURL}')`);
{videoid}
{title}
data-title={title}
fetchpriority={fetchpriority}
{...attrs}
style={styles.join(';')}
>
Expand Down