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

# Slider

```
SoftUI.formTypes.slider(min, max, step, disabled),
```

<ParamField path="min" type="number" required>
  The minimum value of the slider
</ParamField>

<ParamField path="disabled" type="number" required>
  The maximum value of the slider
</ParamField>

<ParamField path="step" type="number" required>
  What value the slider should go up in
</ParamField>

<ParamField path="disabled" type="boolean" required>
  Indicate if the slider should be shown as disabled
</ParamField>

## Data required for getActualSet function

Number

## Data returned

Number | or null

## Example Usage

```javascript theme={null}
{
    optionId: "percentage_ram",
    optionName: "Max RAM usage",
    optionDescription: "At which RAM usage should I create an alert?",
    optionType: SoftUI.formTypes.slider(0, 100, 1, false),
    getActualSet: ({ guild }) => {
      return alertRAM[guild.id];
    },
    setNew: ({ guild, newData }) => {
      alertRAM[guild.id] = newData;
      return;
    },
},
```

## Image

<Frame>
  <img src="https://mintcdn.com/assistantscenter/e0fzjuWUPc5-sSJC/images/formtypes/softui-slider.png?fit=max&auto=format&n=e0fzjuWUPc5-sSJC&q=85&s=e5a61d8a4541427524b7d71958a5803d" width="2022" height="179" data-path="images/formtypes/softui-slider.png" />
</Frame>
