Black Friday: 40% off every new Inertia Table and Inertia Forms license until December 1. Shop the sale
Build serious forms
without wiring
every field.
Define fields, validation, uploads, and multi-step flows in one Laravel form class. Render it in Vue 3 or React 19 with one component, and save the result to your Eloquent model.
One class. The whole form.
Define the form in PHP and render it with one component. When a screen needs a custom layout, place the field components in your template yourself. Both ways use the same components and the same validation.
Define it in PHP
The form class holds the fields, labels, defaults, validation, visibility, and submit route. The frontend has nothing to keep in sync.
The form class APIclass OnboardingForm extends Form
{
public function fields(): array
{
return [
TextInput::make('name')->required(),
TextInput::make('email')->email()->precognitive(),
Combobox::make('plan')->options(Plan::class),
File::make('logo')->image()->mediaCollection('logos'),
Submit::make('Create workspace'),
];
}
}Render it with one component
One component renders every field and handles Precognition validation, uploads, and submit state. The same form class renders in Vue 3 and React 19.
Basic usage<script setup>
import { Form } from '@inertiaui/form-vue'
defineProps(['form'])
</script>
<template>
<Form :form="form" />
</template>Validate and save
Type-hint the form class with #[Validate] and Laravel validates the request against the rules generated from your fields, like a Form Request. Then save() fills your model through Eloquent, so your fillable attributes, casts, and model events still apply. It skips hidden and unauthorized fields and stores uploads in the Media Library collections you declare.
class WorkspaceController
{
public function store(#[Validate] OnboardingForm $form)
{
$workspace = $form->save(new Workspace);
return to_route('workspaces.show', $workspace);
}
public function update(
#[Validate] OnboardingForm $form,
Workspace $workspace,
) {
$form->save($workspace);
return back();
}
}Bring your own fields
Extend Field in PHP, build the matching component, and register it once. After that, any form class can use it like a built-in field, including its validation.
class StarRating extends Field
{
use HasLabel;
use HasValidationRules;
protected int $maxStars = 5;
public function maxStars(int $max): static
{
$this->maxStars = $max;
return $this;
}
public function getComponent(): string
{
return 'StarRating';
}
public function toArray(): array
{
return array_merge(parent::toArray(), [
'label' => $this->getLabel(),
'maxStars' => $this->maxStars,
]);
}
}Every input stands alone
Every input is also a plain Vue component and a plain React component. Bind it with v-model or controlled props and use it anywhere in your app, without a form class.
<script setup>
import { ref } from 'vue'
import { Combobox, TextInput, Toggle } from '@inertiaui/form-vue/components'
const title = ref('Launch notes')
const published = ref(true)
const status = ref('draft')
</script>
<template>
<TextInput v-model="title" label="Title" />
<Toggle v-model="published" label="Published" />
<Combobox
v-model="status"
label="Status"
:options="[
{ value: 'draft', label: 'Draft' },
{ value: 'published', label: 'Published' },
]"
/>
</template>Real forms, rendered live.
Switch between Laravel form classes and themes. The package renders each preview from the serialized form class, so you see the real form, not a mockup.
Form class
Theme
Each theme is a few CSS variables. The package sets no palette or font stack of its own, so forms use your app's font and the colors you choose.
Laravel-native, all the way down.
The server handles validation, authorization, visibility rules, uploads, and saving. In the browser, slots, composables, and CSS variables let you replace or restyle any part.
- Model binding and saving Bind an Eloquent model and the form hydrates from attributes, casts, JSON paths, relations, and existing uploads. save() writes the validated fields back. The form can also warn users before they leave with unsaved changes.
- Spatie Media Library File fields, RichText images, and Composer attachments save to Media Library collections, with optional responsive images. Fields inside Repeaters and Blocks save the same way. Binding the model loads the media back into the form.
- Upload strategies Files upload to temporary storage by default. A field can also split large files into chunks, send files directly to S3, or submit them with the form. In the controller, $form->upload() returns a file you can store on any disk.
- Resumable uploads A chunked upload retries failed chunks, waits while the browser is offline, and continues from the last byte the server has. Over HTTPS, the server checks every chunk against a SHA-256 checksum.
- Upload completion hooks When a chunked upload completes, a class on its upload route can store the file and create your records in the same request. Each route group sets its own rules, size limit, chunk size, and metadata rules.
- Testing uploads In a feature test, the UploadsFormFiles trait sends a file through the chunked upload routes and returns the completion response to assert against.
- Precognition With precognitive(), a field validates against your server rules as soon as the user leaves it. You write no validation rules in JavaScript. On long forms, scrollToFirstError() scrolls to the first error after a failed submit.
- Conditional visibility Show, hide, or clear fields and whole fieldsets based on other values. The server skips hidden fields during validation.
- Authorization Gate single fields or the whole form with closures that call your policies. The server never sends unauthorized fields to the browser.
- Wizard Turn a long form into steps with progress, per-step validation, and configurable navigation. Each top-level fieldset becomes one step.
- HTML in labels and help Labels, help text, fieldset legends, and wizard steps accept Htmlable values, so you can put a link or bold text in the form class. Plain strings stay escaped.
- Built for Tailwind CSS 4 Needs Tailwind 4.3 or later and nothing else, not even the @tailwindcss/forms plugin. Every color, radius, and focus ring is a semantic CSS variable. Dark mode is built in.
- Translations Override any built-in UI string with setTranslations(). Your own labels go through Laravel's translator.
- Slots, children, and data attributes Replace generated fields through Vue slots or React children, append your own content, and add data-* attributes for analytics or end-to-end tests.
- Composables and hooks Your own components can use useForm and useFormField, the same composables and hooks the built-in fields use.
- Laravel Boost skills Laravel Boost gives your AI agent the Inertia Forms skill: form classes, Vue and React rendering, upload choices, styling, and presenter customization. The agent starts from a form class instead of wiring each input by hand.
Laravel Boost + Inertia Forms
Ask for the form, not the form mechanics.
With the Boost skill loaded, your AI agent knows the Inertia Forms API: fields, validation, uploads, model binding, wizards, and submit flows. Your prompt only has to describe the workflow your product needs.
- The agent already knows the fields
- Inputs, errors, uploads, validation feedback, and renderers follow Inertia Forms, so no prompt has to explain them again.
- Less guessing, more product work
- The agent maps your business rules and user flow onto Inertia Forms instead of inventing component state, upload paths, and submit handling.
- Laravel Boost
- Claude Code
- Codex
- Cursor
- Gemini CLI
Every field, finished.
Each field handles the edge cases you would otherwise build yourself: masks, uploads, timezones, nested validation, records, tags, and reordering. Every entry below links to its documentation.
Text and input
- TextInput Eleven input types with masks, currency and number formatting, icons, addons, keyboard shortcuts, and copyable or viewable values.
- Textarea Multi-line text that auto-resizes between min and max heights, with character counts and length limits.
- Slug URL-safe slugs generated live from another field, with separator control and respect for manual overrides.
- Link URLs as a plain string or a structured object with label and target, validated against allowed schemes.
- KeyValue Associative maps and ordered lists with custom headers, row limits, and drag reordering.
- Hidden Hidden values that still bind, validate, and submit like every other field.
Choices and records
- Combobox Finite choices with native select fallback, local search, grouped options, multiple selection, and typed custom values.
- Combobox Tokens String token entry with suggestions, delimiters, per-token rules, duplicate handling, clear-all, and drag reordering.
- Combobox Records Record-backed selection for Eloquent models or endpoints, with server search, selected lookup, pagination, rich media, quick create, and ordered IDs.
- Radio Single choice as plain radios, cards, pills, buttons, or a segmented control, with descriptions and icons.
- CheckboxGroup Multiple choice in the same five variants, with columns, icons, and select-all controls.
- Checkbox A single checkbox storing booleans or custom true and false values.
- Toggle A switch with labels, icons, three sizes, custom colors, custom on and off values, and a loading state.
Dates, values, and media
- DatePicker Single dates, ranges, and multi-date selection with time, timezones, presets, markers, and disabled dates.
- TimePicker 12 or 24-hour time entry with minute steps, min and max boundaries, and disabled slots.
- FileUpload Drag-and-drop uploads with image previews, dimension rules, an upload queue, resumable chunked and direct-to-storage transfers, reordering, and Spatie Media Library support.
- Slider Numbers and dual-thumb ranges with steps, marks, units, vertical orientation, and lazy updates.
- ColorPicker HSL sliders, swatches, alpha, an eyedropper, and copy to clipboard, stored in the format you choose.
- OtpInput One-time codes with grouping, paste and Web OTP autofill, password mode, and auto-submit.
Editors and structure
- RichText A TipTap editor with toolbar presets, link policy, image uploads stored in Spatie Media Library, an Eloquent cast, and word and character counts.
- Composer A chat-style input for messaging and AI interfaces: auto-resize, Enter to send, attachments, and quick actions.
- Repeater A dynamic array of sub-forms for line items and lists, with nested validation, row limits, collapsible rows, and reordering.
- Blocks A page builder inside the form: mixed content blocks, each type with its own schema, preview header, defaults, and limits. Large builders get a searchable, grouped chooser and lazy content.
- Fieldset Groups fields with legends, descriptions, and grid columns. Nests inside other fieldsets and renders through your own wrapper component. Each top-level fieldset becomes a wizard step.
- Wizard Turns fieldsets into a stepped flow with progress, per-step validation, and configurable navigation.
- Submit Submit buttons with variants, sizes, icons, loading states, and multiple named actions.
Display
Shared JavaScript core
Built on our own foundation.
Inertia UI Vanilla is the framework-free JavaScript library under Inertia Forms, Modal, Notifications, and Table. Their Vue and React packages all use it for the interaction behavior they share.
Vanilla does not use any of these
Every shared interaction is in this one library, so the Vue and React packages behave the same way. A fix in Vanilla fixes both.
Owning this layer also means less adapter code and fewer workarounds for another library's assumptions. Inertia UI changes a behavior in Vanilla itself instead of waiting for an upstream release.
Pay once. No subscription.
A license covers one project and includes a year of updates and new features. Renew to keep getting them.
€119
€199 · Black Friday price until December 1
The Black Friday price replaces the €149 owner price. Discounts don't stack.
- Vue 3 + React 19
- 12 months of updates
- Full source code
- Boost skills included
- No auto-renewal
Every license includes the full source of both the Vue and React packages. Another year of updates costs €159.
Every form on this page is the real package, rendered live. You have already tried it.
Get Inertia FormsNeed it for every project? Choose the unlimited license at checkout.