![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
This streamlit component adds a star selector to Streamlit Apps.
It implements the Baseui Rating implementation: https://baseweb.design/components/rating/
$ pip install st-star-rating
$ from streamlit_star_rating import st_star_rating
$ stars = st_star_rating("Please rate you experience", maxValue=5, defaultValue=3, key="rating")
maxValue : Determines how many Stars will be shown defaultValue: Amount of preselected Stars
$ stars = st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", dark_theme = True )
Users can not change the amout of selected stars
st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", read_only = True )
Note: The maximum value is limited to 5 when using emojis instead of stars.
st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", emoticons = True )
It is possible to add a reset button to the component. The reset button will reset the rating to the default value.
st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", reset_button = True )
Furthermore, the label of the button can be determined by setting the resetLabel parameter. Note: HTML tags will be interpreted.
st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", reset_button = True, resetLabel = "Reset" )
Additionally it is possible to provide custom CSS to the component. The CSS can be provided as string and will be rendered in <style>
tags.
st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", reset_button = True, resetLabel = "Reset", customCSS = "div {background-color: red;}" )
Added an on_click parameter. Using this parameter enables user to execute a python function that gets executed once the value component gets clicked.
FAQs
Streamlit Component for Star Ratings
We found that st-star-rating demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.