> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/wokwi/wokwi-docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Slide Potentiometer

> Sliding variable resistor (linear potentiometer)

Sliding variable resistor (linear potentiometer)

The function and pin-out of the slide potentiometer are same as [wokwi-potentiometer](/parts/wokwi-potentiometer). Check out the [wokwi-potentiometer docs](/parts/wokwi-potentiometer) for more information.

## Attributes

<ParamField path="value" type="string" default="0">
  Initial value of the potentiometer, between 0 and 1023
</ParamField>

<ParamField path="travelLength" type="string" default="30">
  Travel length of the tip (mm). Controls the width of the potentiometer. Common values: "15", "20", "30", "45", "60", "100"
</ParamField>

## Simulator examples

* [Slide potentiometer + Servo](https://wokwi.com/projects/297604176384360973) - Control a [servo](/parts/wokwi-servo) with a slide potentiometer
