We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0dd9ef commit be7de8bCopy full SHA for be7de8b
src/components/ui/YouTube.astro
@@ -1,5 +1,11 @@
1
---
2
-import { YouTube } from "@astro-community/astro-embed-youtube";
+import { YouTube as Player } from "@astro-community/astro-embed-youtube";
3
+
4
+type Props = {
5
+ id?: string;
6
+ class?: string;
7
+ [key: string]: any;
8
+}
9
10
const {
11
class: userClass = '',
@@ -10,4 +16,4 @@ const defaultClass = 'border-4 border-white rounded-lg shadow-lg';
16
const className = `${defaultClass} ${userClass}`.trim();
17
12
18
13
-<YouTube class={className} {...attrs} />
19
+<Player:Props class={className} {...attrs} />
0 commit comments