motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Radio
  5. Rating Radio
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Radio

Rating Radio

New

A rating built on radios: stars with hover preview, a 0 to 10 scale, or five faces.

npx motionsnack add rating-radio

Customize

Error Colour
<RatingRadio />

Props

22 properties

PropertyTypeDefaultDescription
valuenumber | null-Picked rating (controlled). null picks nothing.
defaultValuenumber | null4Rating picked at first render (uncontrolled).
onChange(value: number | null) => void-Called with the new rating; null when it is cleared.
itemSizenumber-Deprecated, no effect: stars and faces are 24px marks on a 36px target.
namestringgeneratedName of the radios, sent with a form.
idstringgeneratedId prefix of the radios.
classNamestring''Extra classes on the wrapper.
labelstring'How was your experience?'Legend above the rating. Empty hides it.
descriptionstring''Line under the legend. Empty hides it.
variant'stars' | 'scale' | 'emoji''stars'A row of stars, a 0-10 scale of numbered cells, or five faces.
countnumber5Number of stars.
allowHalfbooleanfalseStars can be picked in halves.
allowClearbooleanfalsePressing the picked value again, or Delete / Backspace, clears the rating.
readOnlybooleanfalseDisplay only: one image of the stars, no radios.
labelsstring'Poor, Fair, Good, Great, Excellent'Words for each rating, lowest first, separated by commas.
lowLabelstring'Not likely'Text under the low end of the scale.
highLabelstring'Very likely'Text under the high end of the scale.
helperTextstring''Small text under the rating. Empty hides it.
errorstring''Error message. Any text colours the outlines and replaces the helper text.
errorColorstring''Overrides the per-theme error colour. Empty uses the theme pair.
requiredbooleanfalseMarks the rating as required.
disabledbooleanfalseDisables the rating.

About Rating Radio

Rating Radio asks how something went and shows the answer as it is given. Stars fill up to the pointer as it moves, the star under it pops a little, and half ratings are one switch away; the 0 to 10 scale lays out numbered cells with Not likely and Very likely under the ends, the classic recommendation question; the faces go from sad to delighted and the picked one fills and grows. A line of text under the rating names the score, such as Great (4 of 5), and is read out to screen readers. Underneath are real radios, so arrow keys move the rating exactly like a native radio group and the value posts with a form, and the component shares the library's legend, helper text, error state and soft focus outline.

What's included

  • Stars, 0 to 10 scale or five faces
  • Hover preview with a small pop on the star
  • Optional half stars
  • Live label such as Great (4 of 5)
  • Native radios: arrow keys and forms
  • Legend, helper text and error state
  • Light and dark look
Type
Animated React radio component
Library
Components · Radio
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add rating-radio