Skip to content
Bladewell
Components
Accordion
Alert
Breadcrumbs
Button
Calendar
Chat
Clock
Command palette
Dropdown
Captcha
Checkbox
Colour picker
Date picker
Date range picker
File upload
Filter builder
Image cropper
Number
OTP
Password
Phone
Radio
Repeater
Search
Select
Show if
Slider
Sortable list
Switch
Tags input
Text input
Textarea
Time picker
Verification code
Field
Icon
Kanban
Auth layout
Sidebar layout
Modal
Pagination
Popover
Price roll
Progress
Stepper
Table
Tabs
Toast
Tooltip
Tooltip cursor
Tree
Docs
Installation
Why Bladewell
For AI agents
Guides
Build a Laravel form from your validation rules
Add a date range picker to a Laravel form
Laravel data table with sorting, filters, pagination
Editable table cells in Laravel with Livewire
A Livewire modal that stays open through re-renders
Using Blade components in Livewire 3 and 4
Two-factor authentication screens for Laravel Fortify
Passkey sign-in for Laravel with Fortify
Real-time notification bell with Laravel Reverb
AI agent actions with Approve and Deny in Laravel
Laravel AI chat with Livewire and streaming replies
Livewire multi-step form with validation per step
Toast notifications in Laravel and Livewire
Livewire file upload with progress and drag and drop
Laravel searchable select that loads from the database
Laravel Blade card, avatar and empty state patterns
Add charts and a rich text editor to a Laravel app
Compare
Bladewell vs Flux: a Free Alternative for Laravel
Bladewell vs Mary UI: daisyUI or Plain Blade
Bladewell vs WireUI: With or Without Alpine
Blade UI Kit Alternative for Laravel 12 and 13
Bladewell vs BladewindUI: Laravel Blade Components
Bladewell vs Sheaf UI: With or Without Alpine
Bladewell vs April UI: Package or Copied-in Code

<x-widget.slider>

Slider Blade component for Laravel and Livewire

A slider on the native range input, so its keyboard and screen reader support stay: one thumb, or two for a span such as a price range. A prefix or suffix on the value, in the page's number format. Range values submit as name[] and bind with wire:model.

php artisan bladewell:add slider
Works with
Laravel 12 and 13, Livewire 3 and 4, Tailwind CSS 4.1+, PHP 8.3+

Usage

Livewire

In a Livewire component, bind with wire:model (deferred) or wire:model.live; no name is needed. One thumb binds a number: public int $volume = 40. A range binds an array, public array $price = [200, 750], each thumb its own end (price.0 and price.1). The slider shows the property after every render, so setting it in PHP moves the thumbs.

Blade
<div class="space-y-6">
    <x-widget.slider label="Volume" wire:model.live="volume" suffix="%" />

    <x-widget.slider label="Price" range wire:model="price" :max="1000" :step="10" prefix="$" />
</div>

Examples

Basic

A native range input underneath: the arrow keys move it a step, Page Up and Down move it further, Home and End jump to the ends. suffix (or prefix) goes on the value shown under the label and on what a screen reader hears.

Show code
Blade
<x-widget.slider name="volume" label="Volume" :value="60" suffix="%" class="max-w-sm" />

Range

range puts two thumbs on one track. They can't cross, and the one moved last stays on top. It submits [from, to] as name[] (here price[]): validate 'price' => ['array', 'size:2'], 'price.*' => ['integer', 'between:0,1000'].

Price

Per night, before taxes.

Show code
Blade
<x-widget.slider name="price" label="Price" range :value="[200, 750]" :min="0" :max="1000" :step="10" prefix="$" info="Per night, before taxes." class="max-w-sm" />

Props

Other attributes, such as autocomplete or data-*, are passed through to the element. class styles the component's outer wrapper.

<x-widget.slider>

Prop Default Description
name null What it submits as; its error and old input are found under it. With range, two values as name[]. Optional with wire:model, which then names it.
id null Defaults to one made from the name (or the wire:model property).
label null Shown above the slider, and its name for screen readers.
value null The value, or with range [from, to]. Old input wins after a failed submit; with wire:model and no value, the bound Livewire property. Defaults to min (and max, for range).
min 0 The lowest value.
max 100 The highest value.
step 1 How far one move goes: the arrow keys move a step, and values snap to steps from min.
range false Two thumbs on one track, for a span such as a price range. Submits [from, to] as name[].
prefix '' Shown before each value, under the label and to screen readers: "$".
suffix '' Shown after each value: " km", "%".
from-label 'Minimum' With range, the first thumb's name for screen readers, after the field's label: "Price Minimum".
to-label 'Maximum' With range, the second thumb's.
error null An error message of your own; otherwise the validation error for the name, from the session or Livewire.
info null A hint under the slider.
bag 'default' Which error bag to read the error from.
disabled false Greyed out: it can't be changed.
readonly false Shown, and submitted, but it can't be moved. With disabled, disabled wins.

Accessibility

All 2 examples above are checked with axe-core against the WCAG 2.2 A and AA rules, in the light theme and the dark one, both as the page draws and with each popover, dialog, toast and tooltip opened, on every change. A change that fails can't be merged. Where axe can't decide, such as contrast on SVG text, the test measures the colours itself instead of letting it pass.

Automated checks can't judge everything: how it sounds in a screen reader, and how it feels to use from the keyboard, still need a person. Check those on your own pages too.

Source

What bladewell:add slider writes to your app with the default namespaces. Prefer to copy by hand? Take these files, plus the ones from Field, and the theme and base CSS.

resources/views/components/widget/slider/index.blade.php Show
index.blade.php
resources/js/widget/slider/index.js Show
index.js
app/View/Widget/ElementIds.php Show
ElementIds.php
app/View/Widget/FormField.php Show
FormField.php