# Rating

## Basic Rating

```powershell
New-UDRating 
```

![](/files/8luXdFBQLwaYTovtdE8k)

## OnChange

Take action when the rating is changed.

```powershell
New-UDRating -OnChange {
    Show-UDToast $EventData
}
```

## Maximum

Change the maximum rating.

![](/files/Lld8ljCqIB5m3yCY8t1Q)

```powershell
New-UDRating -Max 10
```

## Precision

Change the precision for ratings.

![](/files/A4kNmFJE4LQ67juoX5rx)

```powershell
New-UDRating -Precision .5
```

## Size

Change the size of the rating icons.

![](/files/ApFKIJaNqehQQbPy16Zz)

```powershell
New-UDRating -Size large
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.powershelluniversal.com/apps/components/inputs/rating.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
