Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Forms

slider

Range slider built on a native input, submits with the form.

Installation

php artisan ui:add slider

Usage

<x-ui.slider name="volume" :min="0" :max="100" :step="1" :value="50" />

A native input[type=range], so no JavaScript: drag, arrow keys and Home/End all come from the browser. Track and thumb are styled twice, once for WebKit and once for Firefox.

Props

Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.

@props([
    'name' => null,
    'min' => 0,
    'max' => 100,
    'step' => 1,
    'value' => 50,
])