DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Rating
  3. Rating Half-Star Input
DocsMarkdownShare

Shadcn Rating Half-Star Input

Interactive half-star rating. Built with the Rating component. A free, open source shadcn rating example you can install with npx shadcn@latest add @reui/c-rating-7 and edit as your own code.

Interactive half-star rating

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.

Best for: A star input preset to 3.5 with a line under it echoing the chosen score out of 5

When to use

  • Read only star scores at 3 sizes, with partial stars for averages such as 3.5 or 4.6
  • Star inputs that collect a whole star score in feedback and written review forms
  • Review summaries with a count bar per star level, and 5 step emoji scales for quick feedback

When not to use

  • A score the user must pick in half or finer steps: use the Slider component
  • A full product page section of buyer quotes, avatars and a ratings overview: use the Review blocks
  • A required score that keyboard and screen reader users must be able to set: use the Radio Group component

Agent notes

  • The 3.5 preset in useState is the only half value it shows; every click through setRating lands on a whole star
  • An editable Rating takes pointer clicks only: each star is a div with an onClick and no role, tab stop or key handler
  • Clicks send whole numbers from 1 to maxRating to onRatingChange; a decimal rating draws a partial star but cannot be picked
  • starClassName styles the showValue number, not the stars; recolor stars from className through the rating-star-filled slot
Markdownhttps://reui.io/components/rating/c-rating-7.md
MCPget_example("c-rating-7")
Installnpx shadcn@latest add @reui/c-rating-7
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in Rating Half-Star Input

  • Rating

About Shadcn Rating Half-Star Input

Interactive half-star rating. Built with the Rating component. A free, open source shadcn rating example you can install with npx shadcn@latest add @reui/c-rating-7 and edit as your own code.

What You Can Build With Shadcn Rating Half-Star Input

  • Composes Rating, so it drops into any project already using those components.
  • Install it with the shadcn CLI: npx shadcn@latest add @reui/c-rating-7
  • Open source and free, with the full source on this page to copy or adapt.

More Shadcn Rating Examples

  • Basic Basic rating.
  • Decimal Value Rating with decimal value.
  • Show Value Rating with show value.
  • Editable Rating with editable.
  • Sizes Rating with size.
  • Review Summary Rating with review summary
  • Emoji Reactions Emoji reaction rating
  • Review Text Rating with review text input

Related Shadcn Component Categories

  • Resizable

    Open-source shadcn resizable components for split panes, workspace layouts, and draggable dividers.

  • Scroll Area

    Open-source shadcn scroll area components for custom scroll regions, sidebar panes, and dense lists.

  • Scrollspy

    Open-source shadcn scrollspy components for docs navigation, active table of contents, and long-form sections.

  • Select

    Open-source shadcn select components for form selection, settings menus, and filter controls.

  • Separator

    Open-source shadcn separator components for content grouping, toolbar dividers, and section breaks.

  • Sheet

    Open-source shadcn sheet components for slide-over details, side panels, and task flows.

Frequently Asked Questions

When should I use Shadcn Rating Half-Star Input?

Use it for a star input preset to 3.5 with a line under it echoing the chosen score out of 5.

Shadcn Rating as a whole fits:

  • Read only star scores at 3 sizes, with partial stars for averages such as 3.5 or 4.6
  • Star inputs that collect a whole star score in feedback and written review forms
  • Review summaries with a count bar per star level, and 5 step emoji scales for quick feedback

For a score the user must pick in half or finer steps, use the Slider component. For a full product page section of buyer quotes, avatars and a ratings overview, use the Review blocks. For a required score that keyboard and screen reader users must be able to set, use the Radio Group component.

How do I install Shadcn Rating Half-Star Input?

Run npx shadcn@latest add @reui/c-rating-7. The CLI copies the source into your project, so you own the code and can edit it freely.

Is Shadcn Rating Half-Star Input free to use?

Yes. Every ReUI component example is open source and free for personal and commercial projects.

Which components does Shadcn Rating Half-Star Input use?

It composes Rating. The shadcn CLI installs those alongside the example.
PreviousReview SummaryNextEmoji Reactions

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App ShellAdded 4 new App Shell blocks
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedNew Advanced category with 3 Data Grid blocks
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area Chart
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K