m-wrzr / streamlit-searchbox

Streamlit searchbox that dynamically updates and provides a list of suggestions based on a provided function
MIT License
252 stars 33 forks source link

Change margin-bottom #52

Closed vishhvak closed 2 months ago

vishhvak commented 4 months ago

How can I change the margin-bottom or margins on the searchbox?

image

I'd like to make sure they are aligned with buttons

m-wrzr commented 3 months ago

hey, with the latest version 0.1.14 you can pass styles to position like this:

st_searchbox(
    search_function=search_wikipedia_ids,
    key="searchx",
    style_overrides=StyleOverrides(
        wrapper={"padding-top": "50px", "padding-left": "150px"},
    ),
)

otherwise, you can maybe place empty blocks st.markdown("") before/after?