Add Class `steDownloadButton` to `a` tag and `stDownloadButton` to `div` tag wrapped `a`.
So users can now write custom css points to download button see this example:
python
import numpy as np
import pandas as pd
import streamlit as st
import streamlit_ext as ste
df = pd.DataFrame(np.random.rand(10, 5))
ste.download_button("Click to download data!", df, "YOUR_DF.xlsx")
ste.download_button("Click to download text!", b"text content", "YOUR_STRING.txt")
st.download_button("Click to download text!", b"text content", "YOUR_STRING.txt")
st.markdown(
"""
<style>
div.stDownloadButton > button,
div.stDownloadButton > a {
background-color: 000000 !important;
color:ffffff !important;
}
div.stDownloadButton > button:hover,
div.stDownloadButton > a:hover {
background-color: 000000 !important;
color:ff0000 !important;
}
</style>""",
unsafe_allow_html=True,
)