レーティングRatingExperimental
Read-only star rating display with half-star support, optional numeric value and review count, for product, review, and feedback summaries.
プレビュー
Props
表は横にスクロールできます
| プロパティ | 型 | 初期値 | 説明 |
|---|---|---|---|
| value | number | - | Current rating (e.g. 4.5). Rounded to the nearest half-star. |
| max | number | 5 | Maximum number of stars. |
| size | "sm" | "default" | "lg" | "default" | Star size. |
| reviewCount | number | - | Optional review count rendered after the stars. |
| showValue | boolean | - | Render the numeric value before the stars. |
| label | string | - | Override the accessible label (default "{value} out of {max} stars"). |
| className | string | - | Additional CSS class names. |
Usage
import { Rating } from "@gunjo/ui"
export function Example() {
return <Rating value={4.5} reviewCount={128} showValue />
}