diff --git a/docs/hub/spaces-sdks-streamlit.md b/docs/hub/spaces-sdks-streamlit.md index a50360dca4..c590ef72cb 100644 --- a/docs/hub/spaces-sdks-streamlit.md +++ b/docs/hub/spaces-sdks-streamlit.md @@ -76,10 +76,33 @@ You can use the HTML ` +``` + + + +## Embed mode + +You can use the `embed=true` query parameter to activate the embed mode of the Streamlit app, removing some spacers and the footer for slim embeds. +Please note that this parameter disables scrolling in the iframe, so you'll need to set the height of the iframe enough to fit the embedded Streamlit app's content. + ``` ``` @@ -94,7 +117,5 @@ For example, the demo above can be embedded in these docs with the following tag sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads" > -Please note that we have added `?embed=true` to the URL, which activates the embed mode of the Streamlit app, removing some spacers and the footer for slim embeds. - Additionally, you can checkout [our documentation](./spaces-embed).