More icons other than emojis

Hi,

being able to show emojis in most of the widgets is very nice.

But emojis sometimes can not be aligned with the custom style of the app.

Is it planned to add other type of open source icons?

Material icons or Bootstrap icons for example,

thanks

Hi @iuiu

According to the Roadmap (https://roadmap.streamlit.app/) there is plan for a page icon using emojis. As for other icons as you had mentioned, perhaps one can make a custom component to display those in app. In the meantime, there is a hacky way to add them in app as follows:


fa_css = '''
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<i class="fab fa-github"></i>
''' 
st.write(fa_css, unsafe_allow_html=True)

1 Like

nice hack.
But can’t use it for other widgets, st.button for example, right?

unsafe_allow_html is not an arg for st.button

2 Likes

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