Can we integrate our HTML CSS UI with streamlit?

I have UI designed for my web app using HTML and CSS. Can I use it as a layout for my streamlit web app ?

1 Like

Hi Vansh,

Sure, you can use html and css components with streamlit. Just use components.html or components.iframe

https://docs.streamlit.io/library/components/components-api#streamlitcomponentsv1html

Thanks,
Akshansh

2 Likes

Thanks for answering the question. I went through the documentation and found this warning.


So this won’t work in the latest version of streamlit ?

I tried it, seems to work

Great ! I’ll try to implement this too. Thanks :slight_smile:.

Hi @Vansh_Sharma :wave:

The error you’re seeing is a documentation issue for static components being tracked here: Autofunctions for `components.v1.html`, `components.v1.iframe` are broken · Issue #15 · streamlit/docs · GitHub

We’re working on a fix!

Best, :balloon:
Snehan

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.