Files
formbricks/packages/ui/components/ResponsiveVideo.tsx
T
Matti Nannt 60f7103198 Revert & gradually use updated files (#280)
* revert to last working version

* add updated ui components

* update formbricks-com components

* apply prettier formatting

* update apps/web files
2023-05-10 00:20:43 +02:00

19 lines
551 B
TypeScript

interface ResponsiveVideoProps {
src: string;
title?: string;
}
export const ResponsiveVideo: React.FC<ResponsiveVideoProps> = ({ src, title }: ResponsiveVideoProps) => {
return (
<div className="relative" style={{ paddingTop: "56.25%" }}>
<iframe
className="absolute left-0 top-0 h-full w-full rounded"
src={src}
title={title}
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen></iframe>
</div>
);
};