This component allows users to easily select a value or range of values by dragging a slider handle. It's ideal for settings where precise input is required, such as adjusting numerical values, controlling volume, or setting dates.
You can install the package via composer:
composer require rupadana/filament-slider
InputSliderGroup::make()
->sliders([
InputSlider::make('min')
])
->label('Limit')
InputSliderGroup::make()
->sliders([
InputSlider::make('min')
InputSlider::make('max')
])
->label('Limit')
InputSliderGroup::make()
->sliders([
InputSlider::make('min')
InputSlider::make('max')
])
->connect([
false,
true,
false
])
->label('Limit')
InputSliderGroup::make()
->sliders([
InputSlider::make('min')
InputSlider::make('max')
])
->connect([
false,
true,
false
])
->max(100)
->min(0)
->label('Limit')
InputSliderGroup::make()
->sliders([
InputSlider::make('min'),
InputSlider::make('max')->default(50),
])
->connect([
true,
false,
true
]) // array length must be sliders length + 1
->range([
"min" => 30,
"max" => 100
])
->step(10)
->behaviour([
InputSliderBehaviour::DRAG,
InputSliderBehaviour::TAP
])
->enableTooltips()
->label("Limit")
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.