Component libraryRating input

Rating input

Pro

Collect a bounded rating through native radios with exact form values.

npx shadcn@latest add @tidal-pro/rating-input
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/rating-input

Import components/ui/tidal.css, components/ui/rating-input.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Controlled number or null value, exact finite nonnegative numeric options with accessible labels, name/form participation, native radio arrow/Tab behavior, optional clear action, description/error and localized status text. Default options are one through five stars; selected score and cumulative fill remain visible without relying on color. Read-only radios are inert while a hidden mirror preserves form submission; disabled fields are omitted. Option onChange and clear button click handlers run first and can prevent the proposal. Cumulative fill follows option order, including zero. Root fieldset props/ref and per-input refs plus native clear-button props/ref are supported. Consumers own validation policy, submission, persistence and outcomes. No request or storage is bundled.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.