Iām enhancing the user interface of my Streamlit app and Iāve come to a standstill with the file uploader widget. I wish to personalize the text prompts āDrag and drop file hereā and āBrowse filesā to align with the appās language style. Iāve managed to change the label via st.file_uploader("Your custom text here:", type=['xlsx']), but not these specific strings.
Is it possible to customize these parts of the uploader within Streamlit? If it is, Iād greatly appreciate any guidance or code examples.
Thank you for your time and help!
In this case there is a few things to have in mind.
First, using CSS selectors, removing text from a button will require setting the visibility to hidden which will cause the button to disappear. In this demo what I did was set the text of the button to the same color as the button to make it disappear and using an ::after selector add new text. This solution is nowhere near perfect but it should get you close to what you wanted.