streamlit icon indicating copy to clipboard operation
streamlit copied to clipboard

Support pre-defined formats in `format` parameter of `st.slider`

Open lukasmasuch opened this issue 4 months ago • 2 comments

Checklist

  • [x] I have searched the existing issues for similar feature requests.
  • [x] I added a descriptive title and summary to this issue.

Summary

We support a couple of pre-defined formatting options for numbers and datetime values in NumberColumn, DateTimeColumn and st.metric. Add these formats to format parameter of st.slider as well, which currently only supports sprintf for numbers and momentJS for datetime values.

Additional Context

No response

lukasmasuch avatar Dec 06 '25 15:12 lukasmasuch

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Views

github-actions[bot] avatar Dec 06 '25 15:12 github-actions[bot]

@lukasmasuch I’d be happy to pick this up if you think it’s a good fit, please let me know if I can work on this issue. Also, Could you please share the specific list of predefined format options you have in mind for st.slider?

KaranPradhan266 avatar Dec 07 '25 05:12 KaranPradhan266