Can st.dataframe implement a preselection feature?

I would like st.dataframe to implement a preselection feature similar to AgGrid when re-rendering, where specific rows can be pre-selected based on certain conditions. Is this possible? I would appreciate any guidance or suggestions.

This is not currently a feature, but you can upvote the feature request on GitHub to help the devs track interest: