f0rextasy

Star Rating Input

Forms

About

An interactive five-star rating control with hover preview, keyboard arrow navigation, and a live numeric readout for collecting user ratings.

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

Code

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

Usage.tsx

import { StarRatingInput } from "@/components/ui/star-rating-input";

export default function StarRatingInputDemo() {
  return (
    <div className="flex w-full items-center justify-center bg-background p-10">
      <StarRatingInput defaultValue={4} label="Rate the show" />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    5
  • Board Checklist

    Board Checklist

    3
  • Time Input

    Time Input

    3
  • Running Order Timeline

    Running Order Timeline

    2
  • Network Graph

    Network Graph

    2
  • Empty State Card

    Empty State Card

    1
  • Invite Modal

    Invite Modal

    1
  • Striped Progress Bar

    Striped Progress Bar

    1

More in Forms

View all
  • Premium Auth

    Premium Auth

    512
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    70
  • Login 1

    Login 1

    52
  • Authentication Card

    Authentication Card

    47
  • Login Card

    Login Card

    26
  • Login 2

    Login 2

    7
  • Login Form

    Login Form

    6