Forms

Every field binds with wire:model, surfaces validation errors automatically and adapts to the active realm. Try the live form first: it validates as you type.

Live validated form #

Real-time validation with Livewire: errors appear after you leave a field and clear as soon as the value is fixed.

At least 8 characters.

  • No results found.
Pick skills
  • No results found.

Up to 500 characters.

<form wire:submit="submit">
                <x-duro::input name="email" type="email" label="Email" icon="mail" wire:model.blur="email" />
                <x-duro::input name="password" type="password" label="Password" wire:model.blur="password" />
                <x-duro::select name="role" label="Primary role" wire:model.live="role" :options="$roles" />
                <x-duro::multi-select label="Skills" wire:model.live="skills" :options="$skillOptions" />

                <x-duro::button type="submit" loading="submit">Validate & save</x-duro::button>
            </form>

Choices & toggles #

Checkboxes, checkbox cards, radios, switches, segmented toggle buttons and a range slider.

Enhanced visual mode

Adds extra glow and motion.

Complexity preference

Layout

Focus areas
Complexity
1 10

newsletter=true · visual=off · difficulty=standard · layout=grid · focus=[hrms] · complexity=6

<x-duro::switch wire:model.live="notifications" label="Email notifications" />
            <x-duro::checkbox-list label="Focus areas" wire:model.live="focusAreas" :options="$areas" />
            <x-duro::toggle-buttons wire:model.live="layout" :options="['grid' => 'Grid', 'list' => 'List']" />
            <x-duro::slider label="Complexity" wire:model.live="complexity" :min="1" :max="10" />

Date & time #

Calendar, time and combined pickers with year jumping and quick actions.

Select Year
Select time
Hour
Minute
Period
Selected:
Time
Hour
Minute
Period
Selected:
Select Year

date=none · time=none · datetime=none

<x-duro::date-picker label="Launch date" wire:model.live="deployDate" />
            <x-duro::time-picker label="Daily stand-up" wire:model="standupTime" />
            <x-duro::date-time-picker label="Next deployment" wire:model="deployAt" />

Rich content #

Markdown with live preview, a WYSIWYG editor and a code editor.

Duro TipTap-style
PHP • Code editor

Structured data & files #

Tags, colour, key-value pairs, drag-and-drop uploads, repeaters and a block builder.

Accent colour

Uploading… %

Service slots

Page builder