
Build custom fields, widgets, and schema components in React, Vue, Svelte, or plain JS (reusable anywhere)
Render custom form fields, dashboard widgets and schema components with a JavaScript module instead of a Blade view. Filament still handles the field wrapper, labels, validation and state, and your renderer only draws the UI. The generators take a framework flag (plus --ts for TypeScript) and set up the renderer files, dependencies and Vite config for you.
For example, a location picker field in React that stores {latitude, longitude} and validates like any other field, or a revenue overview widget written in Vue.
php artisan make:filament-form-field LocationPicker --react
php artisan make:filament-widget RevenueOverview --vue --ts
php artisan make:filament-schema-component Chart --svelteYou can also skip the generated class and point at a module directly:
use Filament\Forms\Components\JsField;
use Illuminate\Support\Facades\Vite;
JsField::make('location')
->renderer(Vite::asset('resources/js/fields/location-picker.jsx'))
->default(['latitude' => 51.5, 'longitude' => -0.12])JsComponent::make()->renderer(...) works the same way for schema components. Only use trusted URLs or trusted RawJs here, because renderers are not sandboxed.