alexisroe

Rating

Buttons

About

A star, heart, or smiley icon rating input rendered as an accessible radio group, with optional read-only, disabled, and clear-to-zero states.

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

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

import { useState } from "react";

export default function RatingDemo() {
  const [value, setValue] = useState(0);

  return (
    <div className="eink-theme flex min-h-[320px] w-full items-center justify-center p-10">
      <Rating value={value} onChange={setValue} max={5}>
        How was your visit?
      </Rating>
    </div>
  );
}

More by alexisroe

View all
  • Number Stepper

    Number Stepper

    1
  • E-Ink Progress Bar

    E-Ink Progress Bar

  • Navigation

    Navigation

  • Pill

    Pill

  • Notification

    Notification

  • Log

    Log

  • Value Display

    Value Display

  • Last Updated

    Last Updated

More in Buttons

View all
  • Button

    Button

    5
  • Texture Button

    Texture Button

    97
  • Button Group

    Button Group

  • Eclipse Button

    Eclipse Button

    39
  • Button

    Button

    4
  • HeroUI Button Group

    HeroUI Button Group

  • Base Button

    Base Button

    4
  • App Store Button

    App Store Button

    458