Rating
A star-rating input built with DaisyUI's rating class.
Uses hidden radio inputs styled as masked star icons. Supports
full stars, half stars, sizes, color tokens, and pre-selected values.
Default
Five stars, none selected.
Pre-selected value
Set value to highlight stars 1–max.
Colors
Color tokens change the star fill color.
Sizes
Five sizes: xs → xl.
Half stars
half prop doubles the inputs using half-mask shapes.
Custom max
Use max to show 3 or 10 stars instead of the default 5.
Product review
Real-world rating inside a review card.
Rating summary
Display aggregate rating distribution.