---
title: "Slider"
description: "The Slider Component."
canonical_url: "https://docs.ctrl-neo.dev/en/owo-ui-components/components/slider"
---
# Slider

The slider component represents a draggable slider for selecting a value within a range.

## Parameters

<field-group>
<field name="text" type="string" :required="true">

The text to display alongside the slider.

</field>

<field name="value" type="int">

The current value of the slider.

</field>

<field name="active" type="boolean">

Whether the slider is active or not.

</field>
</field-group>

## Examples

<code-group>

```java [Slider.java]
Components.slider(0.5)
    .text(Text.literal("Volume"))
    .active(true)
```

```xml [slider.xml]
<slider>
    <text>Volume</text>
    <value>0.5</value>
    <active>true</active>
</slider>
```

</code-group>


## Sitemap

See the full [sitemap](https://docs.ctrl-neo.dev/sitemap.md) for all pages.
