Components
A component to render external content via an iframe.
Usage
The IFrame component is utilized to embed another HTML page into the current one.
::iframe
---
src: "https://konghq.com"
border: "1px solid lightgray"
border-radius: "8px"
height: "600px"
width: "600px"
max-width: "100%"
padding: "0"
margin: "0"
display: "inline"
---
::
Iframe Component Props
Props
The IFrame component accepts any attribute allowed by the native iframe element, other than srcdoc, including global attributes.
src
The URL of the page to embed. If the src prop is not provided, the element will be removed from the DOM.
- Type:
string - Default:
'' - Required:
true
Shared Props
This component also includes the shared props listed below:
padding- default isnullmargin- default isnullborder- default isnullborderRadius- default isnullwidth- default is100%height- default is100%maxWidth- default is100%display- default isinlinestyles- default is''