Black Friday Sale 40% Off•Sale end soon

PaceUI

  • Components
  • Blocks
  • Templates
  • Studio
  • Resources
Intro
  • Components
  • Installation
  • MCP
Agents
  • Chat Composer
  • Workflow Board
  • Thinking States
  • Audio Visualizer
  • Task Pipeline
  • Approval Card
  • Tool Calls
    New
  • Model Ability Selector
  • Model Selector
  • Response Writer
  • AI Suggestions
  • Token Counter
Crafts
  • All Crafts
  • Avatar Flight
  • Voice Record
  • Starfield Card
  • Destination Queue
  • Rolling Bento
  • Download Button
  • Cart Stepper
  • Heart Burst
  • Copy Bar
  • Generative Grid
  • Destination Card
  • Magnetic Button
  • Morphing Copy
  • Expanding Search
  • Metric Tracker
  • Tilt Card
  • Animated Stack
Charts
  • Acquisition Funnel
  • Weekly Traffic
  • Customer Growth
  • Financial Performance
  • Model Usage
  • Customer Segments
  • Sales Overview
  • Channel Sales
  • Daily Orders
  • Weekly Attendance
  • Market Trends
  • Portfolio Overview
  • Resource Usage
  • SaaS Subscriptions
  • Database Performance
  • API Traffic
  • Traffic Distribution
  • Spend Allocation
Motion
  • Accordion
  • Alert
  • Calendar
  • Checkbox
  • Collapsible
  • Combobox
  • Context Menu
  • Dropdown Menu
  • Empty
  • Hover Card
  • Input OTP
  • Menubar
  • Navigation Menu
  • Pagination
  • Progress
  • Radio Group
  • Rating
    New
  • Scroll Area
  • Select
  • Sidebar
  • Slider
  • Switch
  • Tabs
  • Tooltip
  • Reveal Text
  • Scramble Text
  • Squash Text
  • Bouncing Text
  • Mouse Wave Text
  • Text Fall Button
  • Spring Button
  • Infinite Scroller
  • Fillable Button
  • Layered Stack
  • Gradient Shadow
  • Profile Peek
  • Flip Reveal
  • Reveal on Scroll
  • Swap
  1. Components
  2. Motion
PreviousNext

Rating

Star rating that fills like water on hover and reveals a review box to share thoughts and feedback in React.

Card

API Reference

Rating

PropTypeDefaultDescription
valuenumber—The controlled score value of the rating.
defaultValuenumber0The initial score value when uncontrolled.
onValueChange(value: number) => void—Callback fired when the rating value changes.
maxnumber5Maximum number of stars to display.
openboolean—Controlled uncollapsed state for the review panel.
defaultOpenbooleanfalseInitial uncollapsed state.
onOpenChange(open: boolean) => void—Callback fired when the review panel collapses or uncollapses.
reviewstring—Controlled text value of the review textarea.
onReviewChange(review: string) => void—Callback fired when review text changes.
onSubmit(data: RatingSubmitData) => void—Callback fired when the review is submitted.
disabledbooleanfalseDisables interaction with stars and inputs.
readOnlybooleanfalseMakes the rating read-only.
uncollapseOnRatebooleantrueAutomatically uncollapses review textarea upon clicking a star.
ratingLabelsstring[]["Poor", "Fair", "Good", "Very Good", "Excellent"]Descriptive labels for each star value.
showLabelbooleantrueWhether to display the text label for the active rating.
activeColorClassNamestring—Custom color class for filled stars.
inactiveColorClassNamestring—Custom color class for unfilled stars.

RatingStars

PropTypeDefaultDescription
starClassNamestring—Custom CSS classes applied to each star button.

RatingContent

PropTypeDefaultDescription
transitionTransition{ type: "spring", stiffness: 420, damping: 28, mass: 0.8 }Custom Motion spring transition for uncollapsing.
Radio GroupScroll Area

PaceUI

Animated blocks, components, and templates for Next.js and TanStack Start. Built with Motion and shadcn - clean code you own.

GitHubTwitterDiscord

Products

BlocksComponentsTemplatesCraftsTanStack ChartsMCP ServerStarter KitsStyleX Components

Resources

DocumentationMotion ComponentsGSAP AnimationsNative AIBlogChangelog

Pricing & Account

PricingManage AccountLicensesAPI KeysAffiliate Program

Company

Contact UsDiscord CommunityPrivacy PolicyTerms of Service

© 2026 PaceUI. All rights reserved. Built by indie developer, Denish

PACEUI

We value your feedback
4 / 5
Tell us how we did and what we can do better
Very Good
Fast DeliveryGreat SupportEasy to UseHigh QualityClean Design
How was your experience?
Tap a star to share your thoughts with us