Skip to content

feat: add star rating component #7227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AdeboyeDN
Copy link

@AdeboyeDN AdeboyeDN commented Apr 19, 2025

Overview

This PR introduces a new Rating component that visually represents numerical ratings using star icons (by default).

Motivation

  • The component library currently lacks a built-in solution for displaying ratings.
  • This addresses a community request in issue #7203 and PR #2350.

Implementation Details

  • Uses the Lucide React icon set for the default star icons.
  • Designed to be flexible and customizable for future enhancements.

Feedback

I’d love to hear thoughts on the implementation, and potential improvements — open to suggestions!

preview.mp4

Copy link

vercel bot commented Apr 19, 2025

@AdeboyeDN is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant