Ready-to-Use Components Powered by Flowbite, ShadCN & Headless UI
Component Library
Browse and explore components
Rating
A Rating is a UI component used to display or collect user feedback.
Default rating
Sample Code
Show Code
Copy Code
Rating With Text
4.95 out of 5
Sample Code
Show Code
Copy Code
Rating Count
4.95
73 reviewsSample Code
Show Code
Copy Code
Star sizing
Advanced Rating
4.95 out of 5
1,745 global ratings
5 star
70%
4 star
17%
3 star
8%
2 star
4%
1 star
1%
Sample Code
Show Code
Copy Code
API ( Rating )
Prop | Description | Type | Default |
---|---|---|---|
size | Sets the size of the stars. | "sm" | "md" | "lg" | "sm" |
filled | If true, the star is filled otherwise, it is empty. | boolean | true |
percentFilled | The percentage of the rating bar that is filled. | 1 to 100 | 0 |