# Rating (@salmonui/inputs/rating)

> The Rating component of @salmonui/inputs/rating: Rating: one native radio per step (two per item with precision="half") named by localeText.item, inside a &lt;fieldset role="radiogroup"> named by label. Arrow keys are the browser's radio keys (mirrored in RTL); hover preview is CSS. Read-only 'quarter' / 'exact' precision renders one role="img" with a clipped fill. ref is the root element.

Canonical: https://salmonui.dev/docs/reference/inputs/rating/Rating

```ts
import { Rating } from '@salmonui/inputs/rating';
```

Entry index: https://salmonui.dev/docs/reference/inputs/rating (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/rating.md).

## Reference

Kind: component

```ts
function Rating(props: RatingProps): ReactNode;
```

Rating: one native radio per step (two per item with
`precision="half"`) named by `localeText.item`, inside a
`<fieldset role="radiogroup">` named by `label`. Arrow keys are the
browser's radio keys (mirrored in RTL); hover preview is CSS. Read-only
`'quarter'` / `'exact'` precision renders one `role="img"` with a clipped
fill. `ref` is the root element.

Props: [`RatingProps`](https://salmonui.dev/docs/reference/inputs/rating/RatingProps) (its members are the props)
