
Summary
Track-based range slider with optional live value output. Also used internally forFieldType::Percentage and FieldType::RangeSlider.
| Class | Bjanczak\FilamentFlexFields\Filament\Forms\Components\TrackSlider |
| State type | int|float |
| Model cast | 'volume' => 'integer' or 'float' |
| FieldType | range_slider, percentage |
Basic usage
Validation
No built-in min/max rules. Add manually:FlexFieldDefinition.
Configuration API
min(int|float|Closure $min = 0) / max(int|float|Closure $max = 100)
Range boundaries.
step(int|float|Closure $step = 1)
Slider step increment.
integer(bool|Closure $condition = true)
Snap to integer values. Default: true.
showOutput(bool|Closure $condition = true)
Display the current value. Default: true.
suffix(string|Closure|null $suffix)
Text after the value, e.g. %, px.
variant(string|Closure $variant)
| Value | Description |
|---|---|
default | Standard filled track. |
secondary | Subtle track styling. |
decimalPlaces(int|Closure|null $places)
Decimal precision for displayed value.
trackLabel(string|Closure|null $label)
Accessible label / ARIA description for the track.
size(string|ControlSize|Closure $size)
See Control size.
FlexField schema config
| Config key | Maps to |
|---|---|
min | min() |
max | max() |
step | step() |
size | size() |
variant | variant() |
show_output | showOutput() |
suffix | suffix() |
decimal_places | decimalPlaces() |
track_label | trackLabel() |
integer | integer() |