computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
476 B
20 lines
476 B
import { AspectRatio } from '@chakra-ui/react'; |
|
|
|
type IFrameProps = { |
|
title: string; |
|
src: string; |
|
}; |
|
|
|
export default function IFrame(props: IFrameProps) { |
|
return ( |
|
<AspectRatio maxW='100%' ratio={2} mb='18px'> |
|
<iframe |
|
frameBorder={0} |
|
title={props.title} |
|
src={props.src} |
|
allow={'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture'} |
|
allowFullScreen |
|
/> |
|
</AspectRatio> |
|
); |
|
}
|
|
|