Beautiful map components. 100% Free, Zero config, one command setup.
TypeScript
interface IframePreviewProps {
src: string;
title: string;
}
export function IframePreview({ src, title }: IframePreviewProps) {
return (
<div className="bg-background ring-foreground/5 relative h-(--block-preview-height) w-full overflow-hidden rounded-lg shadow-xs ring-1">
<iframe
src={src}
title={title}
loading="lazy"
className="size-full border-0"
/>
</div>
);
}