> For the complete documentation index, see [llms.txt](https://docsv1.polyfrost.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docsv1.polyfrost.org/configuration/available-options/number-options/slider-option.md).

# Slider option

## Example

{% tabs %}
{% tab title="Java" %}

```java
@Slider(
    title = "My Slider",
    titleKey = "", // Sets the options tile translation key, default = ""
    description = "This is my number", // Sets the options description, default = ""
    descriptionKey = "", // Sets the options description translation key, default = ""
    icon = "/my_number.svg", // Sets the icon used for the option, default = ""
    category = "Numbers", // Sets the options category, default = "General"
    categoryKey = "", // Sets the categories translation key, default = ""
    subcategory = "General", // Sets the options subcategory, default = "General"
    subcategoryKey = "", // Sets the options subcategory translation key, default = ""

    unit = "ms", // Sets the unit, default = ""
    unitKey = "", // Sets the units translation key, default = ""
    min = 0f, // Sets the min value, default = -10
    max = 50f, // Sets the max value, default = 100
    step = 0.5f // Sets the step value, default = 0.5
)
public static float myNumber = 0f;
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
var mySlider: Float by slider(
    name = "My Slider",
    def = 0f,
    nameKey = null, // Sets the options tile translation key, default = null
    description = "This is my number", // Sets the options description, default = null
    descriptionKey = null, // Sets the options description translation key, default = null
    icon = "/my_number.svg", // Sets the icon used for the option, default = null
    category = "Numbers", // Sets the options category, default = "General"
    categoryKey = null, // Sets the categories translation key, default = null
    subcategory = "General", // Sets the options subcategory, default = "General"
    subcategoryKey = null, // Sets the options subcategory translation key, default = null

    unit = "ms", // Sets the unit, default = null
    unitKey = null, // Sets the units translation key, default = null
    min = 0f, // Sets the min value, default = -10
    max = 50f, // Sets the max value, default = 100
    step = 0.5f // Sets the step value, default = 1
)
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Your field can be typed with any subtype of `Number`.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docsv1.polyfrost.org/configuration/available-options/number-options/slider-option.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
