Slider

5
0 10
Attribute Type Documentation Default Value
id :any

HTML id attribute

name :any

HTML name attribute for form submission

value :any

current slider value

field %FormField{}

a form field struct retrieved from the form

label :string

text label displayed above the slider

min :integer

minimum allowed value

0
max :integer

maximum allowed value

100
step :integer

step increment between values

1
color :string

color variant

"primary"
helper :string

helper text displayed below the slider

errors :list

list of error messages to display

[]
size :string

slider size

"md"
disabled :boolean

disables the slider

false
horizontal :boolean

horizontal layout (label beside input)

false
state :string

validation state (applies form-group-success/warning)

vertical :boolean

render as a vertical slider

false
show_value :boolean

show the current value and min/max labels

true
class :any

additional CSS classes for the wrapper

label_class :any

additional CSS classes for the label

slider_class :any

additional CSS classes for the range input

rest :global