1. framework components
  2. rating group

Rating Group

Rating Group allows users to rate something

Half Step

Set the allowHalf prop to enable half steps.

Custom Icons

Insert your own custom images or icons for the empty and full states.

Label

Use the Label component to describe the intended usage.

Disabled

Set the disabled prop to enable the disabled state.

Direction

Set the text direction (ltr or rtl) using the dir prop.

Anatomy

Here’s an overview of how the RatingGroup component is structured in code:

svelte
<script lang="ts">
	import { RatingGroup } from '@skeletonlabs/skeleton-svelte';
</script>

<RatingGroup>
	<RatingGroup.Label />
	<RatingGroup.Control>
		<RatingGroup.Item />
	</RatingGroup.Control>
	<RatingGroup.HiddenInput />
</RatingGroup>

API Reference

Unable to load component information for svelte/rating-group

View page on GitHub