Thanks for the quick response @tonykip. It looks like this:
import streamlit as st
age_tooltip = '''Your risk of this disease grows as you age.'''
age = st.slider(label = 'What is your age?',
min_value=18,
max_value=120,
help=age_tooltip,
)
import streamlit as st
age_tooltip = '''Your risk of this disease grows as you age.'''
# Define custom CSS to increase tooltip icon size
custom_css = """
<style>
#bui2__anchor > svg{
width: 32px;
height: 32px;
}
</style>
"""
# Display the custom CSS
st.markdown(custom_css, unsafe_allow_html=True)
# Create the slider with the help parameter
age = st.slider(label='What is your age?',
min_value=18,
max_value=120,
help=age_tooltip,
)