Load a remote URL in an iframe.

Function signature[source]

st.components.v1.iframe(src, width=None, height=None, scrolling=False)


src (str)

The URL of the page to embed.

width (int)

The width of the frame in CSS pixels. Defaults to the app's default element width.

height (int)

The height of the frame in CSS pixels. Defaults to 150.

scrolling (bool)

If True, show a scrollbar when the content is larger than the iframe. Otherwise, do not show a scrollbar. Defaults to False.


import streamlit as st import streamlit.components.v1 as components # embed streamlit docs in a streamlit app components.iframe("https://example.com", height=500)

Still have questions?

Our forums are full of helpful information and Streamlit experts.