Rating
Display a rating or let people select a score using labelled stars.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/rating-display-options.json.
Usage
Playground
Examples
Display options
Emoji reactions
Review form
Review summary
API
8 props
Accessibility
Editable ratings expose keyboard-operable controls. Include enough text to explain the score and its range.
Related
ToggleGroupSingle or multiple pressed choices for view modes and compact formatting controls.6 examplesCardCard frames reusable content with title, subtitle, and optional children.8 examplesFieldField composes form label, description, error, and input building blocks.7 examplesToastTransient feedback for completed actions, errors and recoverable background work.4 examplesProgressDeterminate and indeterminate progress with a readable task label.4 examplesSeparatorSeparate related content with a horizontal or vertical rule.3 examples