mirror of
https://github.com/vercel/components.build.git
synced 2026-09-14 20:06:39 +08:00
17 lines
429 B
TypeScript
17 lines
429 B
TypeScript
import type { ComponentProps } from "react";
|
|
import ReactPlayer from "react-player";
|
|
|
|
type VideoProps = ComponentProps<typeof ReactPlayer>;
|
|
|
|
export const Video = (props: VideoProps) => (
|
|
<div className="not-prose relative mb-6 aspect-video w-full overflow-hidden rounded-lg bg-black">
|
|
<ReactPlayer
|
|
{...props}
|
|
className="absolute inset-0"
|
|
controls
|
|
height="100%"
|
|
width="100%"
|
|
/>
|
|
</div>
|
|
);
|