Can we change width, height, background-color, font-color of st.number_input and st.selectbox?
@BeyondMyself,
As far as I know no, at this point that is not possible. I have requested the same before but from what I remember and see, customizing of streamlit components is not yet available.
@BeyondMyself itโs possible using the same hack you got for the color of a button. Using css selectors.
Add the following in style.css
div[role=โlistboxโ] ul {
** background-color: #99cfdd;**
}
div[data-baseweb=โselectโ] > div {
** background-color: #99cfdd;**
}
div[data-baseweb=โinputโ] > div {
** background-color: #99cfdd;**
}
And include the following lines in .py file
from load_css import local_css
local_css(โstyle.cssโ)