Base Components

Tailwind CSS Rating

Tailwind CSS Rating component enables a rating system using icons to represent both whole number and decimal rating values, providing a clear and visually appealing way to indicate ratings.

Default Rating

Tailwind CSS Rating example with maximum number value.

Non-decimal

Tailwind CSS Rating example with whole decimal value.

Decimal

Tailwind CSS Rating example with whole decimal value.

Input

Use Tailwind CSS Rating as an input for form submission, allowing users to easily provide feedback through selectable rating values.

Colors

Use the custom Tailwind CSS Color classes to customize the Tailwind CSS Rating component.

Sizes

Use the custom Tailwind Font Size classes to customize the Tailwind CSS Rating icons size.

Source Code

The following source file manages the CSS styles of the Tailwind CSS Rating component. Upon building the assets using Webpack Build Tools , the below file is compiled and added into the dist/assets/css/styles.css bundle, making it available globally across all pages.
File Description
src/core/plugins/components/rating.js The Tailwind CSS compatible plugin written in PostCSS for applying CSS styles to the Tailwind CSS Rating component.