Skip to content

armgit / mapcn

Public Imported from GitHub
0

Beautiful map components. 100% Free, Zero config, one command setup.

TypeScript
429 B
Raw Blame
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>
  );
}