--- title: Rating desc: Rating is a set of radio buttons that allow the user to rate something. layout: components classnames: component: - class: rating desc: For a div containing radio inputs modifier: - class: rating-half desc: To shows half of the shapes. Useful for half star ratings - class: rating-hidden desc: For the first radio to make it hidden so user can clear the rating size: - class: rating-xs desc: Extra small size - class: rating-sm desc: Small size - class: rating-md desc: Medium size default: true - class: rating-lg desc: Large size - class: rating-xl desc: Extra large size --- > :INFO: > > Items in each rating should have unique `name` attributes to avoid conflicts with other ratings on the same page. ### ~Rating
```html
``` ### ~Read-only Rating
```html
``` ### ~mask-star-2 with warning color
```html
``` ### ~mask-heart with multiple colors
```html
``` ### ~mask-star-2 with green-500 color
```html
``` ### ~Sizes
```html
``` ### ~with `rating-hidden` #### `rating-hidden` is a hidden radio at the start to allow users to remove their rating.
```html
``` ### ~half stars
```html
```