Download file with code

Hi everyone

I would like to know how to download CSV files.
I know that there are Streamlit download button and also markdown link that can be used but I have another case.
I’m using Streamlit-elmeents which use Material-UI download button so I need to download file when this button is clicked. any ideas on how to download file with a script?

We need your tricks @andfanilo :pray::sweat_smile: