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 isnull
margin
- default isnull
border
- default isnull
borderRadius
- default isnull
width
- default is100%
height
- default is100%
maxWidth
- default is100%
display
- default isinline
styles
- default is''