memento-dev/app/components/Iframe.tsx

22 lines
370 B
TypeScript

import clsx from "clsx";
type IframeProps = {
src: string;
title: string;
width?: string;
height?: string;
class?: string;
};
export default function Iframe(props: IframeProps) {
return (
<iframe
src={props.src}
class={clsx("max-w-full pointer-events-none", props.class)}
width={props.width}
height={props.height}
title={props.title}
/>
);
}