alwkala

Rating

Component

About

An interactive or read-only star rating control for displaying and collecting feedback scores, with an optional numeric label.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Rating to your project and fits it to your theme.

Code

How Rating is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import RatingComponent from "@/components/ui/rating";

export default function ReadonlyRatingDemo() {
  return (
    <div className="flex flex-col items-center justify-center gap-4 p-10">
      <RatingComponent value={4.5} isReadonly showLabel />
    </div>
  );
}

More by alwkala

View all
  • Callout

    Callout

    7
  • Progress Bar

    Progress Bar

    1
  • Kbd

    Kbd

  • Pagination

    Pagination

  • Checkbox

    Checkbox

  • Ribbon

    Ribbon

  • Data Table

    Data Table

  • Navbar

    Navbar