Streamlit Component for Star Ratings
Project description
Streamlit Star Rating Component
===
This streamlit component adds a star selector to Streamlit Apps.
It implements the Baseui Rating implementation: https://baseweb.design/components/rating/
Installation
-----------
$ pip install st-star-rating
Usage
------------
## Import the Component
$ 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
## Choose between a dark and light theme
$ stars = st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", dark_theme = True )
## Read-Only Mode
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 )
## Emotiocons instead of Stars
st_star_rating(label = "Please rate you experience", maxValue = 5, defaultValue = 3, key = "rating", emoticons = True )
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
st_star_rating-0.0.2.tar.gz
(582.8 kB
view hashes)
Built Distribution
st_star_rating-0.0.2-py3-none-any.whl
(590.1 kB
view hashes)
Close
Hashes for st_star_rating-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1bb0ae21938390748fa844634aea0165c1652078b675642bde42f0482799e14 |
|
MD5 | 9f513d468ec9e5419c266a36c00ca313 |
|
BLAKE2b-256 | b353d1ed322e07b0c1ede5b73c92fc65654a5ff79139263c1d3dac303099bf66 |