Every input type

Every form control in the package on one long settings page, grouped by kind: each one as it starts and again with an error, and in each section one field that is required and one that is disabled. It is the sheet to check a theme, an upgrade or a change to one control against all the others, and the place to copy a field from.

Every input type, light and dark

A block, not a component: copy what you need from the views below. It assumes the base layout, which loads Alpine and the package's script.

What it shows

  • Eight sections, each a panel with its heading: text, choices, lists, numbers, phone and codes and keys, dates and times, files and pictures and colour, then shortcuts and editing in place and order. Each is a <section> named by its heading.
  • Pairs. On a wide screen each row is a control as it starts on the left and the same control with a server error on the right, so a change that shifts one state and not the other shows. On a phone the pairs stack.
  • Required and disabled in every section: a required field carries required, which each control passes to the field it posts through; a disabled one is dimmed, skipped by Tab and not posted.
  • The section nav down the left on a wide screen (above the form on a narrow one): nav items linking to each section's id, inside a <nav aria-label="Sections">.
  • The save bar: change any field and the save bar slides up from the foot of the form with Save and Discard. It watches the form by its id, so nothing else is wired.
  • Upload rows: the timetables field shows one file uploading at 40% and one done, from its files; the conditions field shows a file that failed.
  • The app around it: a top nav with a skip link to main, and the page header.

A new form control joins this page: its spec gets a line starting **Form control.**, and the package's tests fail until it appears here.

Built from

The markup

resources/views/examples/every-input.blade.php

{{--
    Every form control the package has, as one long form: each control as it
    starts and with an error, and in each section one required and one
    disabled. A sheet to check a theme or an upgrade against, and to copy a
    field from. Each section is its own view, included below.
--}}
@php
    $sections = [
        'text' => 'Text',
        'choices' => 'Choices',
        'lists' => 'Lists',
        'numbers' => 'Numbers',
        'contact' => 'Phone, codes and keys',
        'dates' => 'Dates and times',
        'files' => 'Files, pictures and colour',
        'more' => 'Shortcuts, editing and order',
    ];
@endphp

<x-layouts.base title="Every input type">
    <x-ds::top-nav skipTo="main" container="wide">
        <x-slot:brand>
            <a href="{{ route('home') }}" class="flex items-center gap-2 rounded-control text-section text-fg focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring">
                <span class="flex size-7 items-center justify-center rounded-control bg-surface-inverse text-on-inverse">
                    <x-ds::icon name="cube-transparent" size="4" />
                </span>
                Pebblework
            </a>
        </x-slot:brand>
        <x-ds::top-nav-item :href="route('projects.index')" label="Projects" />
        <x-ds::top-nav-item :href="route('settings')" label="Settings" :active="true" />
    </x-ds::top-nav>

    <main id="main" class="mx-auto flex max-w-7xl flex-col gap-8 px-4 py-8 sm:px-6 lg:flex-row lg:gap-10 lg:py-12">
        <aside class="lg:w-56 lg:shrink-0">
            <nav aria-label="Sections" class="flex flex-col gap-0.5 lg:sticky lg:top-6">
                @foreach ($sections as $id => $title)
                    <x-ds::nav-item :href="'#'.$id" :label="$title" />
                @endforeach
            </nav>
        </aside>

        <div class="flex min-w-0 flex-1 flex-col gap-6">
            <x-ds::page-header
                title="Every input type"
                description="Each control as it starts and with an error. Change anything and the save bar appears."
            />

            <form id="every-input" method="POST" action="{{ route('examples.every-input') }}" enctype="multipart/form-data" class="flex flex-col gap-6" novalidate>
                @csrf

                @foreach ($sections as $id => $title)
                    {{-- scroll-mt: a section reached from the nav keeps a little room above it. --}}
                    <section id="{{ $id }}" aria-labelledby="{{ $id }}-heading" class="scroll-mt-6">
                        <x-ds::panel body="plain">
                            <h2 id="{{ $id }}-heading" class="mb-6 text-title text-fg">{{ $title }}</h2>
                            <div class="grid gap-x-8 gap-y-7 md:grid-cols-2">
                                @include('examples.every-input.'.$id)
                            </div>
                        </x-ds::panel>
                    </section>
                @endforeach

                <x-ds::save-bar form="every-input" />
            </form>
        </div>
    </main>
</x-layouts.base>

resources/views/examples/every-input/text.blade.php

<x-ds::input name="workspace" label="Workspace name" help="Shown on invoices and in emails." value="Tidewater Ferries" required />
<x-ds::input type="url" name="website" label="Website" help="Where the logo in emails links to." value="tidewater.example" error="Enter a web address that starts with https://." />

<x-ds::input type="email" name="contact" label="Contact email" help="Replies to notifications go here." autocomplete="email" />
<x-ds::input type="email" name="billing_contact" label="Billing email" help="Invoices go here." value="accounts@tidewater" error="Enter an email address like [email protected]." />

<div class="flex flex-col gap-2">
    <x-ds::input id="new-password" type="password" name="password" label="New password" help="At least 8 characters." autocomplete="new-password" :reveal="true" />
    <x-ds::password-strength for="new-password" />
</div>
<x-ds::input type="password" name="current_password" label="Current password" help="To confirm it is you." autocomplete="current-password" :reveal="true" error="That is not your current password." />

<x-ds::input type="search" name="find" label="Find a member" help="Matches names and emails." icon="magnifying-glass" value="Ines" :clearable="true" />
<x-ds::input type="tel" name="fax" label="Fax" help="Still asked for by two ports." value="Not in use" disabled />

<x-ds::input as="textarea" name="about" label="About the workspace" help="Markdown works." :rows="3">Ferry timetables, tickets and boarding passes for the islands.</x-ds::input>
<x-ds::input as="textarea" name="signature" label="Email signature" help="Up to 300 characters." :rows="3" error="Keep it to 300 characters: this is 342.">Tidewater Ferries · Harbour Office, Quay Street · Open every day from 6 in the morning until the last sailing, including bank holidays, with a reduced timetable from November to March and extra sailings in August for the festival.</x-ds::input>

<x-ds::input as="select" name="language" label="Language (native select)" help="For the interface and emails.">
    <option value="en-GB" selected>English (United Kingdom)</option>
    <option value="cy">Cymraeg</option>
    <option value="ga">Gaeilge</option>
</x-ds::input>
<x-ds::input name="workspace_id" label="Workspace ID" help="Read only. Quote it to support." value="ws_8kq2m4" readonly />

resources/views/examples/every-input/choices.blade.php

<div class="flex flex-col gap-3">
    <x-ds::checkbox name="digest" value="1" label="Send a weekly digest" help="Mondays, before 8 in the morning." :checked="true" />
    <x-ds::checkbox name="beta" value="1" label="Try new features early" help="Ask your administrator to turn this on." disabled />
</div>
<x-ds::checkbox name="agree" value="1" label="I understand that changes apply to every project" help="Required before saving." required error="Tick this to save." />

<x-ds::radio-group label="Week starts on" help="For calendars and reports.">
    <x-ds::radio name="week_start" value="monday" label="Monday" :checked="true" />
    <x-ds::radio name="week_start" value="sunday" label="Sunday" />
    <x-ds::radio name="week_start" value="saturday" label="Saturday" help="Not offered in your region." disabled />
</x-ds::radio-group>
<x-ds::radio-group label="Time format" help="How times are written everywhere." error="Choose how times are written.">
    <x-ds::radio name="time_format" value="24" label="24-hour, 14:30" required />
    <x-ds::radio name="time_format" value="12" label="12-hour, 2:30 pm" required />
</x-ds::radio-group>

<x-ds::radio-cards name="support" label="Support plan" help="Billed with the workspace." :columns="3" class="md:col-span-2">
    <x-ds::radio-card value="community" title="Community" description="The forum and the help centre." :checked="true">
        <x-slot:meta>Free</x-slot:meta>
    </x-ds::radio-card>
    <x-ds::radio-card value="priority" title="Priority" description="Email, answered within a working day.">
        <x-slot:meta>£40 a month</x-slot:meta>
    </x-ds::radio-card>
    <x-ds::radio-card value="dedicated" title="Dedicated" description="A named engineer and a phone line." disabled>
        <x-slot:meta>Business</x-slot:meta>
    </x-ds::radio-card>
</x-ds::radio-cards>
<x-ds::radio-cards name="region" label="Where your data is kept" help="Cannot be changed later." :columns="2" error="Choose where your data is kept." class="md:col-span-2">
    <x-ds::radio-card value="uk" title="United Kingdom" description="London and Manchester." />
    <x-ds::radio-card value="eu" title="European Union" description="Dublin and Frankfurt." />
</x-ds::radio-cards>

<div class="flex flex-col gap-4">
    <x-ds::switch name="public" label="Public profile" help="Anyone with the link can see the timetable." :checked="true" />
    <x-ds::switch name="sso" label="Single sign-on" help="On the Business plan." disabled />
</div>
{{-- The toggle group's label names it but is not drawn, so the words are written above it. --}}
<div class="flex flex-col items-start">
    <span class="mb-2 block text-meta font-medium text-fg-muted">Default text alignment</span>
    <x-ds::toggle-group label="Default text alignment" name="align">
        <x-ds::toggle value="left" icon="bars-3-bottom-left" label="Left" :iconOnly="true" :pressed="true" />
        <x-ds::toggle value="center" icon="bars-3" label="Centre" :iconOnly="true" />
        <x-ds::toggle value="right" icon="bars-3-bottom-right" label="Right" :iconOnly="true" />
    </x-ds::toggle-group>
</div>

<x-ds::segmented-control name="density" label="Density">
    <x-ds::segment value="comfortable" :checked="true">Comfortable</x-ds::segment>
    <x-ds::segment value="compact">Compact</x-ds::segment>
</x-ds::segmented-control>
<x-ds::chip-group name="channels" label="Notify me by" :multiple="true">
    <x-ds::chip value="email" :checked="true">Email</x-ds::chip>
    <x-ds::chip value="push" :checked="true">Push</x-ds::chip>
    <x-ds::chip value="sms" disabled>Text message</x-ds::chip>
</x-ds::chip-group>

resources/views/examples/every-input/lists.blade.php

@php
    $timezones = ['Europe/London' => 'London (GMT+0)', 'Europe/Dublin' => 'Dublin (GMT+0)', 'Europe/Lisbon' => 'Lisbon (GMT+0)', 'Europe/Paris' => 'Paris (GMT+1)'];
    $ports = ['ardmore' => 'Ardmore', 'carrick' => 'Carrick Quay', 'inchbay' => 'Inch Bay', 'kilrona' => 'Kilrona', 'portlee' => 'Port Lee', 'skerra' => 'Skerra'];
    $people = [
        ['id' => 1, 'label' => 'Ines Duarte', 'meta' => 'Operations'],
        ['id' => 2, 'label' => 'Olu Adeyemi', 'meta' => 'Engineering'],
        ['id' => 3, 'label' => 'Kai Lindqvist', 'meta' => 'Support'],
    ];
@endphp

<x-ds::select name="timezone" label="Time zone" help="Sailing times are shown in this zone." :options="$timezones" value="Europe/London" />
<x-ds::select name="currency_zone" label="Invoice time zone" help="When a day's invoices close." :options="$timezones" placeholder="Choose a time zone" required error="Choose the time zone invoices close in." />

<x-ds::combobox name="home_port" label="Home port" help="Type to search." :options="$ports" value="carrick" />
<x-ds::combobox name="ports" label="Ports served" help="Choose any number." :options="$ports" :multiple="true" :value="[]" error="Choose at least one port." />

<x-ds::tag-input name="domains" label="Allowed email domains" help="Press Enter or comma after each." :value="['tidewater.example', 'islandlines.example']" />
<x-ds::tag-input name="invite" label="Invite by email" help="Press Enter or comma after each address." validate="email" :value="['[email protected]', 'olu@example']" error="olu@example is not an email address." />

<x-ds::mention-input name="welcome" label="Welcome message" help="Type @ to mention someone." :items="$people" :rows="3" value="Welcome aboard. Ask @Ines Duarte about timetables." />
<x-ds::mention-input name="handover" label="Handover note" help="Who picks this up, and what is left." :items="$people" :rows="3" disabled value="Kept by the previous administrator." />

resources/views/examples/every-input/numbers.blade.php

<x-ds::number-field name="seats" label="Seats" help="People who can sign in." :value="12" :min="1" :max="50" />
<x-ds::number-field name="crew" label="Crew per sailing" help="Between 2 and 8." :value="12" :min="2" :max="8" required error="Crew per sailing is at most 8." />

<x-ds::money-input name="fare" label="Adult fare" help="Before VAT." currency="GBP" locale="en-GB" value="14.50" />
<x-ds::money-input name="refund_limit" label="Refund limit" help="Refunds above this need a second person." :currencies="['GBP', 'EUR']" currency="EUR" locale="en-GB" value="-20" error="The refund limit cannot be below zero." />

<x-ds::slider name="reminder" label="Reminder before sailing" help="Set for every workspace by Pebblework." disabled :value="30" :min="0" :max="120" :step="15" showValue="inline" :format="['suffix' => ' min']" />
<x-ds::slider name="load" label="Booking window" help="How full a sailing can get before booking closes." :value="110" :min="50" :max="100" showValue="inline" :format="['suffix' => '%']" error="The booking window is at most 100%." />

<x-ds::slider
    name="price"
    label="Fares shown on the timetable"
    help="The bars are how many sailings have each fare."
    :range="true"
    :value="[10, 40]"
    :min="0"
    :max="60"
    lowLabel="Lowest fare"
    highLabel="Highest fare"
    showValue="inline"
    :format="['prefix' => '£']"
    :histogram="[2, 5, 9, 14, 11, 8, 6, 4, 3, 2, 1, 1]"
    countLabel=":count sailing|:count sailings"
    class="md:col-span-2"
/>

<x-ds::rating name="crossing" label="How was the crossing?" help="Shown to the crew, not to other passengers." :value="4" />
<x-ds::rating name="booking" label="How easy was booking?" help="One to five stars." required error="Choose a rating, or leave the survey." />

resources/views/examples/every-input/contact.blade.php

<x-ds::phone-input name="phone" label="Phone" help="For sailing cancellations." country="GB" :preferred="['GB', 'IE']" value="+44 7700 900461" />
<x-ds::phone-input name="harbour_phone" label="Harbour office" help="Shown on tickets." country="IE" value="+353 1 555 01" required error="This number is too short for Ireland." />

<x-ds::phone-input name="old_phone" label="Previous phone" help="Kept for six months after a change." country="GB" value="+44 7700 900123" disabled class="md:col-span-2" />

<x-ds::otp-input name="code" label="Code from your app" help="To confirm the change of owner." />
<x-ds::otp-input name="sms_code" label="Code by text message" help="Sent to the number ending 461." value="381" error="That code has expired. We sent a new one." />

<x-ds::api-key-field provider="Coastline Maps" name="maps_key" help="For the harbour maps on tickets." hint="cm_live…9f3a" status="valid" prefix="cm_live_" :test="true" />
<x-ds::api-key-field provider="Tally Payments" name="payments_key" help="From the Developers page of your Tally account." prefix="tp_" error="Tally rejected this key. Check you copied all of it." />

resources/views/examples/every-input/dates.blade.php

<x-ds::date-picker name="season_opens" label="Season opens" help="The first sailing of the summer timetable." value="2027-04-01" />
<x-ds::date-picker name="renewal" label="Renewal date" help="Must be after today." value="2025-11-30" required error="Choose a date after today." />

<x-ds::date-picker
    name="closure"
    label="Winter closure"
    help="No sailings between these dates."
    :range="true"
    :value="['2027-01-04', '2027-01-15']"
    :presets="['next-7-days' => 'Next 7 days', 'next-30-days' => 'Next 30 days']"
/>
<x-ds::date-picker name="archived_on" label="Archived on" help="Set when a project is archived." value="2026-08-14" disabled />

<x-ds::time-picker name="first_sailing" label="First sailing" help="Every day of the season." value="06:40" :step="5" />
<x-ds::time-picker name="last_sailing" label="Last sailing" help="Before 23:00." value="23:30" max="23:00" :step="5" required error="The last sailing leaves before 23:00." />

<x-ds::calendar name="dry_dock" label="Days in dry dock" :multiple="true" :value="['2027-02-09', '2027-02-10', '2027-02-11']" month="2027-02" :disabledDays="[0]" class="md:col-span-2" />

resources/views/examples/every-input/files.blade.php

<x-ds::file-upload
    name="timetables[]"
    label="Timetables"
    help="PDF, up to 10 MB each."
    :multiple="true"
    accept=".pdf"
    :maxSize="10 * 1024 * 1024"
    :files="[
        ['id' => 1, 'name' => 'summer-2027.pdf', 'size' => 482000, 'status' => 'uploading', 'progress' => 40],
        ['id' => 2, 'name' => 'winter-2027.pdf', 'size' => 391000, 'status' => 'done', 'href' => '#timetables'],
    ]"
/>
<x-ds::file-upload
    name="terms_pdf"
    label="Conditions of carriage"
    help="One PDF, up to 10 MB."
    accept=".pdf"
    :maxSize="10 * 1024 * 1024"
    required
    error="conditions-2027.pdf is over 10 MB."
    :files="[
        ['id' => 3, 'name' => 'conditions-2027.pdf', 'size' => 14200000, 'status' => 'failed', 'error' => 'Over 10 MB.'],
    ]"
/>

<x-ds::avatar-upload name="logo" label="Logo" help="Square, at least 256 pixels." shape="square" alt="Tidewater Ferries" :outputSize="256" outputType="image/png" />
<x-ds::avatar-upload name="photo" label="Your photo" help="JPEG, PNG or WebP, up to 2 MB." alt="Mara Okafor" :maxSize="2 * 1024 * 1024" error="That file is not a picture we can read." />

<x-ds::color-picker name="brand" label="Brand colour" help="Buttons and links on tickets." value="#0e7490" contrastWith="#ffffff" />
<x-ds::color-picker name="accent" label="Highlight colour" help="Behind delayed sailings." value="#fde04" error="Enter a colour like #fde047." />

<x-ds::color-picker
    name="label_colour"
    label="Label colour"
    help="Just the presets, no script needed."
    :presetsOnly="true"
    :swatches="['#64748b' => 'Grey', '#0e7490' => 'Teal', '#16a34a' => 'Green', '#d97706' => 'Amber', '#dc2626' => 'Red']"
    value="#0e7490"
/>
<x-ds::color-picker name="legacy_colour" label="Old brand colour" help="Kept for tickets printed before 2026." value="#1e3a8a" disabled />

resources/views/examples/every-input/more.blade.php

<x-ds::shortcut-input name="shortcuts[search]" label="Open search" help="Press the keys you want." value="mod+k" :conflicts="['mod+j' => 'Jump to a sailing']" />
<x-ds::shortcut-input name="shortcuts[jump]" label="Jump to a sailing" help="Press the keys you want." value="mod+j" error="Ctrl+J opens downloads in most browsers. Choose another." />

<x-ds::shortcut-input name="shortcuts[help]" label="Open help" help="Set by your administrator." value="shift+?" disabled class="md:col-span-2" />

{{-- Inline edit's label names it but is not drawn, so the words are written above it. --}}
<div class="flex flex-col gap-1.5">
    <span class="text-body font-medium text-fg">Workspace short name</span>
    <x-ds::inline-edit name="short_name" label="Workspace short name" value="Tidewater" placeholder="Add a short name" />
</div>
<div class="flex flex-col gap-1.5">
    <span class="text-body font-medium text-fg">Ticket footer</span>
    <x-ds::inline-edit name="ticket_footer" label="Ticket footer" value="" placeholder="Add a footer" error="Add a footer: tickets must say who runs the service." />
</div>

<div class="flex flex-col gap-2">
    <x-ds::input as="textarea" id="notice" name="notice" label="Notice to passengers" help="Speak it or type it." :rows="3" required />
    <x-ds::dictation-button for="notice" lang="en-GB" />
</div>
{{-- So is the sortable list's. --}}
<div class="flex flex-col gap-1.5">
    <span class="text-body font-medium text-fg">Order of stops</span>
    <x-ds::sortable-list name="stops" label="Order of stops">
        <x-ds::sortable-item value="carrick">Carrick Quay</x-ds::sortable-item>
        <x-ds::sortable-item value="inchbay">Inch Bay</x-ds::sortable-item>
        <x-ds::sortable-item value="skerra">Skerra</x-ds::sortable-item>
        <x-ds::sortable-item value="kilrona" :disabled="true">Kilrona, always last</x-ds::sortable-item>
    </x-ds::sortable-list>
</div>

Wire it up

The sheet writes its values and errors in by hand, so every state shows at once. In your form each field reads both from the request instead:

<x-ds::input
    name="website"
    label="Website"
    :value="old('website', $workspace->website)"
    :error="$errors->first('website')"
/>

Every control here takes error the same way, except those listed under What it cannot show yet. A field posted as an array (ports[], invite[]) reads its error by the array's name, and a message about one item by $errors->first('invite.*').

What each control posts, and a rule for it. The names are the sheet's:

// app/Http/Requests/UpdateWorkspaceRequest.php
public function rules(): array
{
    return [
        'workspace' => ['required', 'string', 'max:80'],
        'website' => ['nullable', 'url:https'],
        'password' => ['nullable', Password::min(8)],
        'about' => ['nullable', 'string', 'max:2000'],
        'language' => ['required', Rule::in(['en-GB', 'cy', 'ga'])],

        'digest' => ['boolean'],                        // checkbox: 1, or absent
        'agree' => ['accepted'],
        'week_start' => ['required', Rule::in(['monday', 'sunday'])],
        'support' => ['required', Rule::in(['community', 'priority'])],
        'public' => ['boolean'],                        // switch: 1, or absent
        'align' => ['nullable', Rule::in(['left', 'center', 'right'])],
        'density' => ['required', Rule::in(['comfortable', 'compact'])],
        'channels' => ['array'],                        // chip group, multiple: channels[]
        'channels.*' => [Rule::in(['email', 'push', 'sms'])],

        'timezone' => ['required', 'timezone'],         // select: one value
        'ports' => ['required', 'array', 'min:1'],      // combobox, multiple: ports[]
        'invite' => ['array'],                          // tag input: invite[]
        'invite.*' => ['email'],
        'welcome' => ['nullable', 'string'],            // mention input: the text…
        'welcome_mentions' => ['array'],                // …and the ids mentioned

        'seats' => ['required', 'integer', 'between:1,50'],
        'fare' => ['required', 'decimal:0,2', 'min:0'], // money: "14.50", never grouped
        'refund_limit_currency' => ['required', Rule::in(['GBP', 'EUR'])],
        'load' => ['required', 'integer', 'between:50,100'],
        'price.low' => ['required', 'integer'],         // range slider: price[low], price[high]
        'price.high' => ['required', 'integer', 'gte:price.low'],
        'booking' => ['required', 'integer', 'between:1,5'],

        'phone' => ['nullable', 'string'],              // E.164: +447700900461
        'sms_code' => ['required', 'digits:6'],
        'payments_key' => ['nullable', 'string', 'starts_with:tp_'],

        'season_opens' => ['required', 'date'],         // 2027-04-01
        'closure_start' => ['nullable', 'date'],        // a range posts _start and _end
        'closure_end' => ['nullable', 'date', 'after_or_equal:closure_start'],
        'last_sailing' => ['required', 'date_format:H:i', 'before:23:00'],
        'dry_dock' => ['array'],                        // calendar, multiple: dry_dock[]
        'dry_dock.*' => ['date'],

        'timetables' => ['array'],
        'timetables.*' => ['file', 'mimes:pdf', 'max:10240'],
        'logo' => ['nullable', 'image', 'max:2048'],    // avatar upload: the cropped file…
        'logo_remove' => ['boolean'],                   // …or Remove
        'brand' => ['required', 'hex_color'],

        'shortcuts.search' => ['nullable', 'string'],   // "mod+k"
        'short_name' => ['nullable', 'string', 'max:30'],
        'notice' => ['required', 'string'],
        'stops' => ['array'],                           // sortable list: stops[] in order
    ];
}

The phone input's number can be checked and split with the package's own Shipbytes\BladeUi\Support\Phone::parse(); see Phone input.

The save bar needs the form's id and nothing else. After a save, redirect back as usual: the page loads clean and the bar is hidden. Pass :error="$errors->any() ? 'Some fields need attention.' : null" to have it say so when the save comes back with errors. With Livewire, see Save bar.

With Livewire, each control takes wire:model in place of name and value (the docs page of each says which modifiers it needs), the form wire:submit="save", and the errors come from $errors as above.

What it cannot show yet

Found while building this page, for a later batch:

  • No error state on Switch, Toggle group, Segmented control, Chip group, Calendar and Sortable list: none takes error, so those rows have one cell. A message under them has to be written by hand and tied with aria-describedby.
  • No help text on the same six, nor on Inline edit.
  • No visible label on Inline edit, Toggle group and Sortable list: label names each for a screen reader only, so the sheet writes the words above them. (The segmented control and chip group draw theirs, small and muted, unlike the other fields' labels.)
  • Avatar upload's file input, before the script runs, is not tied to the "Logo" label beside it, so a screen reader hears an unnamed file button. The package's own test lists it as a known gap.

Phone, keyboard, no script

  • On a phone the section links sit above the form, the pairs stack, the radio cards stack, and the save bar stays clear of the home indicator.
  • Keyboard: the top nav's skip link goes straight to the main content. Tab runs down each section in reading order, left cell then right. Radio groups, the segmented control, radio cards and the rating are one Tab stop each, with arrows to choose.
  • No script: the controls built on native fields work as they are: text, checkbox, radio, radio cards, switch, segmented control, chip group, native select, slider, rating, presets-only colour, file upload, and the sortable list in its server order. The date and time pickers, the phone, money and colour fields, the mention input, the calendar, inline edit, the shortcut input, the API key field and the avatar upload fall back to plain fields posting the same names, as their pages describe. The select, combobox, tag input, toggle group and number field need Alpine and the package's script, as do the save bar, the strength meter, the dictation button and the upload rows' buttons; the OTP boxes do not post typed digits.

From the package repo: edit this page on GitHub.

Was this page helpful?