A shadcn-style rating group component built with Ark UI primitives.

Installation

npx shadcn@latest add @ark-cn/rating-group

Usage

import * as RatingGroup from "@/components/ui/rating-group"

Read exported parts in src/components/ui/rating-group.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Basic

Controlled

Value: 0

Root provider

value: 4

With field

Helper text below the group (Ark with-field example).

Half steps

Form

Disabled

API reference

This component mirrors the upstream Ark UI primitive.

See the ARK UI documentation for the full API.

Accessibility

See the Ark UI documentation for clarification.