Filament Wizard with jetstream components.

I can't use jetstream button component in my filament wizard. Undefined variable $attributes.
Wizard::make([
// ...
])->submitAction(view('components.button'))

// button.blade.php
// jetstream default button
<button {{ $attributes->merge(['type' => 'submit', 'class' => 'primary-btn']) }}>
{{ $slot }}
</button>
Wizard::make([
// ...
])->submitAction(view('components.button'))

// button.blade.php
// jetstream default button
<button {{ $attributes->merge(['type' => 'submit', 'class' => 'primary-btn']) }}>
{{ $slot }}
</button>
3 Replies
Dennis Koch
Dennis Koch2y ago
Yeah because it’s a component and not just a view.
Shaung Bhone
Shaung BhoneOP2y ago
Yes, how can I use that component?
Dan Harrin
Dan Harrin2y ago
create a new view that consumes that button
Want results from more Discord servers?
Add your server