Skip to content

Range Control

Slider control with optional input field for visual number selection.

OptionTypeDefaultDescription
labelstring-Field label
controlstringrangeControl type
defaultnumber-Default value
minnumber-Minimum value
maxnumber-Maximum value
stepnumber1Step increment
showInputbooleanfalseShow numeric input field
marksarray-Mark positions
{
"attributes": {
"opacity": {
"type": "number",
"default": 80,
"wbs": {
"label": "Opacity",
"control": "range",
"min": 0,
"max": 100,
"step": 5,
"showInput": true
}
}
}
}
<div class="overlay" style="opacity: {{ attributes.opacity / 100 }}">
{{ inner_blocks|raw }}
</div>

Use Range for:

  • Percentages (opacity, progress)
  • Sizes and scales
  • Any value where visual slider selection is more intuitive than typing