Загрузка видео...

Не удалось загрузить видео

На главную

🥵 Coming soon: Build Filament components with React / Vue / Svelte / your JavaScript framework of choice?! I started with just form fields to prove the concept as these can have complex interactions, it won't be difficult to allow widgets etc. to be build like this too!

32,199 просмотров • 2 месяцев назад •via X (Twitter)

Комментарии: 33

Фото профиля Dan Harrin 🦒
Dan Harrin 🦒2 месяцев назад

These can interact with the rest of your Filament form too! Use `$get()` and `$set()` to read and update other fields, pass dynamic configuration from PHP which updates the props passed to the component automatically, or call methods on your field class using `#[Exposed]`.

Фото профиля Dan Harrin 🦒
Dan Harrin 🦒2 месяцев назад

The components are loaded on demand as ES modules when the field initializes, so you don't need to load React on every page just because one field uses it. Filament doesn't ship any of these frameworks itself, and plain JavaScript works too!

Фото профиля Dan Harrin 🦒
Dan Harrin 🦒2 месяцев назад

I've added generators for all of these too: `php artisan make:filament-form-field Counter --react` Also `--vue`, `--svelte`, or `--js`, with `--ts` if you want TypeScript. What would you build with this? Any existing JS components you've wanted to bring into Filament?

Фото профиля Aidan Laycock
Aidan Laycock2 месяцев назад

This looks absolutely amazing @danjharrin 🙌 Could an extreme version of this allow the use of ShadCN UI for example to replace all of the default filament components? On a slight aside, I could see this as a major unlock for JS/TS devs engaging with Filament.

Фото профиля Dan Harrin 🦒
Dan Harrin 🦒2 месяцев назад

An extreme version would allow you to replace all of the default form fields using ShadCN form fields. But I would suggest that you are selective about which ones you outright replace. Reskin components with (theme) CSS to make them look identical to ShadCN where possible.

Фото профиля Aidan Laycock
Aidan Laycock2 месяцев назад

That makes sense, thank you! Really looking forward to this release. 🎉

Фото профиля ᕦ( ͡° ͜ʖ ͡°)ᕤ
ᕦ( ͡° ͜ʖ ͡°)ᕤ2 месяцев назад

Inertia + tsx would be the dream framework

Фото профиля Dennis 🏕
Dennis 🏕2 месяцев назад

Pure magic!

Фото профиля Stanley Ojadovwa
Stanley Ojadovwa2 месяцев назад

Looking forward to this

Фото профиля ᴚƎ⅁N∀HƆ ƎW∀⅁🪴
ᴚƎ⅁N∀HƆ ƎW∀⅁🪴2 месяцев назад

Dan you've been working hard recently. All i would say is that you're doing a mighty work of art for @laravel community🔥🔥

Фото профиля Punyapal Shah
Punyapal Shah2 месяцев назад

Is it inspired from minglejs?

Фото профиля Dan Harrin 🦒
Dan Harrin 🦒2 месяцев назад

I think it solves a similar sort of problem, but the implementation is original and built for Filament schema components specifically rather than being a general Livewire solution.

Фото профиля Punyapal Shah
Punyapal Shah2 месяцев назад

Oh 😯 intresting I was working on package for Laravel client side validation almost ready added filament support via extra attributes. Let's see how this make my life easy/hard to finish that project up!

Фото профиля Emovon Uwadia
Emovon Uwadia2 месяцев назад

We are finally getting there. Who says we can't have the best of both worlds? I have been using react in Filament for special custom pages using Minglejs.

Фото профиля JustSteveKing
JustSteveKing2 месяцев назад

This is awesome

Фото профиля Mauricio Mou
Mauricio Mou2 месяцев назад

Amazing work Dan! This is fire! 🔥

Фото профиля InspireCMS
InspireCMS2 месяцев назад

awesome

Фото профиля Justas Raudonius
Justas Raudonius2 месяцев назад

This is awesomeeeeeee! I was debating Filament vs Inertia+Vue for an internal CRM rewrite and given this I'm so glad I chose Filament.

Фото профиля Dan Harrin 🦒
Dan Harrin 🦒2 месяцев назад

I am working on something else you might like then 👀

Фото профиля Justas Raudonius
Justas Raudonius2 месяцев назад

👀👀

Фото профиля Shaheen Fawzy
Shaheen Fawzy2 месяцев назад

Feeling filament is just getting better and better everyday, thank you for your efforts

Фото профиля Julian Schramm
Julian Schramm2 месяцев назад

So cool! I can already see some real use cases for this😄

Фото профиля Bezhan Salleh 🚀
Bezhan Salleh 🚀2 месяцев назад

@filamentphp 💛

Фото профиля Shamim
Shamim2 месяцев назад

This is huge!!!

Фото профиля Peter Fox
Peter Fox2 месяцев назад

Really useful for putting in things like custom code editors without reinventing the wheel to do it

Фото профиля Hammad Zafar
Hammad Zafar2 месяцев назад

That's the way to go @danjharrin , Can't wait to see Filament Apps powered by React/Vue/Swelte.

Фото профиля Debjit B.
Debjit B.2 месяцев назад

Well its look like laravel + inertia + react now!

Фото профиля Arthur Minasyan 🐦‍🔥
Arthur Minasyan 🐦‍🔥2 месяцев назад

@filamentphp 🚀

Фото профиля Emovon Uwadia
Emovon Uwadia2 месяцев назад

Please add support for building Custom pages with react/vue.

Фото профиля Shaharyar Ahmed
Shaharyar Ahmed2 месяцев назад

It's just awesome, i can't wait to be able to use it

Фото профиля Peach Peace Treaty
Peach Peace Treaty2 месяцев назад

Instead of just form fields, cant we make full pages with js/ts/svelete/react etc I have a page in my filament application that needs alot of things client side, i have to use blade, livewire(lil bit), but its getting out of hand, having jsx would be awesome in such cases

Фото профиля fajar sp
fajar sp2 месяцев назад

many dev leaving livewire as in the past has big security issues many dev change to inertia as we can switch easily between frontend stack

Фото профиля Matt Clinton
Matt Clinton2 месяцев назад

@filamentphp This is huge! We’ve got some use cases for this atm and I’ve been reluctant to use/rely on that mingle library

Похожие видео