Hi everyone, I like customize my web app, and I like to know is it possible to change the style of the UI in the interactive widget? If yes, how can I do that? Thanks!
for example : the “+” in the expander
icon of the tooltips.
Hi everyone, I like customize my web app, and I like to know is it possible to change the style of the UI in the interactive widget? If yes, how can I do that? Thanks!
for example : the “+” in the expander
icon of the tooltips.
Hi @C45513 -
In general, no, the ability to change those symbols in the widgets isn’t built into Streamlit right now. It may be possible using some fancy CSS or something, but changing them at runtime probably wouldn’t be very stable.
Best,
Randy
just as an example
[aria-expanded="true"] > [data-baseweb="icon"] > path[fill-rule="evenodd"] {
d: path("M7.247 4.86l-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z");
color: #737579;
}
[aria-expanded="false"] > [data-baseweb="icon"] > path[fill-rule="evenodd"] {
d: path("M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z");
color: #737579;
}
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.