Rating Group

Selection & Input · Guide 30 of 46

Open the live Rating Group demo →

Purpose

Star rating with half-step support.

Import

<script lang="ts">
	import { RatingGroup } from 'bits-ui';
</script>

The registry names RatingGroup as this guide’s namespace. Copy the exact root and part composition from the live demo rather than guessing part names.

Usage checklist

  • Define the value shape, allowed range, and empty state before wiring UI.
  • Provide labels, instructions, and validation feedback.
  • Test keyboard, pointer, touch, and programmatic value changes.

Secondary reference

After using the local example, consult the upstream Bits UI reference for exhaustive API details.

Continue