# Slider

Sliders allow users to make selections from a range of values.

Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.

## Slider

![](/files/3FLFQjzi4Y7IA8Yg9Kqg)

```powershell
New-UDSlider -Value 1
```

## Slider with minimum and maximum values

![](/files/roXHRJ5pTHMDDNwFR4En)

```powershell
New-UDSlider -Min 10 -Max 1000
```

## Disabled Slider

![](/files/kI5787zvsSnA2yCbBkkf)

```powershell
New-UDSlider -Disabled
```

## Slider with custom step size

![](/files/odN5SnQyGY78HjsbJ4r3)

```powershell
New-UDSlider -Min 10 -Max 1000 -Step 100
```

## Slider with marks

![](/files/QCGZog37UsU7XVaN5DTZ)

```powershell
New-UDSlider -Marks
```

## Range based slider

![](/files/UDCFST1zI55Q5smzyVB6)

```powershell
New-UDSlider -Value @(1, 10)
```

## OnChange event for slider

```powershell
New-UDSlider -OnChange {
    Show-UDToast -Message $Body 
    Set-TestData $Body
}
```

## API

* [New-UDSlider](https://github.com/ironmansoftware/universal-docs/blob/v5/cmdlets/New-UDSlider.txt)


---

# 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/slider.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.
