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:
import { RatingGroup } from '@skeletonlabs/skeleton-react';
export default function Anatomy() {
return (
<RatingGroup>
<RatingGroup.Label />
<RatingGroup.Control>
<RatingGroup.Item />
</RatingGroup.Control>
<RatingGroup.HiddenInput />
</RatingGroup>
);
}<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 react/rating-group
Unable to load component information for svelte/rating-group