Rating
CoreUI PRO hexagon
Our Admin Panel isn’t just a mix of third-party components. It’s the only Next.js dashboard built on a professional, enterprise-grade UI Components Library. This component is part of this library, and we present only the basic usage of it here. To explore extended examples, detailed API documentation, and customization options, refer to our docs.
React Rating

Embed the Rating component in your React application like this:

React Rating Read only

Set the React rating component to read-only by adding readOnly property. This disables interaction, preventing users from changing the displayed rating value.

React Rating Disabled

Add the disabled boolean property to give it a grayed out appearance, remove pointer events, and prevent focusing.

React Rating Tooltips

Enable descriptive text on hover by adding tooltips prop. This provides immediate feedback or guidance as the user interacts with the rating items.

For custom messages, provide an array of labels corresponding to each rating value to enhance the user's understanding of each rating level.

React Rating Sizes

Larger or smaller react rating component? Add size="lg" or size="sm" for additional sizes.

React Rating Precision

Adjust the granularity of the Rating component by setting precision prop. This attribute allows for fractional ratings, such as quarter values, to provide more precise feedback.

React Rating Number of items

Control the total number of rating items displayed by using itemCount property. You can create a React rating component with a custom scale, be it larger for detailed assessments or smaller for simplicity.

React Rating Custom icons

Customize the React rating component with your choice of SVG icons by assigning new values to the activeIcon and icon properties in the JavaScript options. This allows for a unique look tailored to the design language of your site or application.

For a more dynamic experience, define different icons for each rating value, enhancing the visual feedback: