Streamlit component that allows you to set emojis from 5 prettier icon libraries
Project description
streamlit-custom-component
Streamlit component that allows you to set emojis from 5 prettier icon libraries
Installation instructions
pip install Sidebar-nav-custom-icons-streamlit
Usage instructions
import streamlit as st
from custom_sidebar_icons import Set_Nav_Emojis as set_Nav
#Icon libraries this supports
# - "https://icons8.com/icons/",
# - "https://remixicon.com/",
# - "https://icons8.com/line-awesome",
# - "https://tabler-icons.io/",
# - "https://fonts.google.com/icons",
# Can have a look at source code and add support for more
# When loading from local file or from html without iframe or some container
emojisOrender = set_Nav(emojis_list)
emojisOrender.show_me_the_icons_Render()
# When loading from streamlit Cloud - app loaded in container (iframe)
emojisOrender = set_Nav(emojis_list, streamlit_cloud_app=True)
emojisOrender.show_me_the_icons_Render()
# When loading app from some other cloud deploy container
append_CDN_to = """
window.top.document.querySelectorAll("iframe[title='streamlitApp']")[0].contentDocument.head
"""
emojisOrender = set_Nav(emojis_list, my_custom_head_CDN_selector=True, append_CDN_to=append_CDN_to)
emojisOrender.show_me_the_icons_Render()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for Sidebar-nav-custom-icons-streamlit-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fa2979ed8a15f37f8de73e57010d29d5de46401d07c1e937e5441f98dfe17b0 |
|
MD5 | 037de4b3cc1a02269ce69edda966607f |
|
BLAKE2b-256 | 329d3ecd15efe650ff89f3234d99c4c52e3d29a77ca54c8e582923608a52508d |
Close
Hashes for Sidebar_nav_custom_icons_streamlit-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11fb73939348852a2212e9c92e66c77a4e3b5573b95482f647e0b5ccf93fddda |
|
MD5 | 43b970796cf17e0b1da8aa3fd46123e5 |
|
BLAKE2b-256 | d418fe2552f432f2ec894cd56be0908b872ad138c2ba393f4daf36e3f0af861e |