Files
codey.lol/src/components/mdx/YouTube.astro

21 lines
316 B
Plaintext
Raw Normal View History

2025-06-18 07:46:59 -04:00
---
import YT from "react-youtube";
interface Props {
videoId: string;
}
const { videoId } = Astro.props;
---
<div class="relative w-full h-0 pb-[56.25%] my-6">
<YT
opts={{
height: "100%",
width: "100%",
}}
videoId={videoId}
class="absolute top-0 left-0 w-full h-full"
/>
</div>