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 Koch15mo ago
Yeah because it’s a component and not just a view.
Shaung Bhone
Shaung Bhone15mo ago
Yes, how can I use that component?
Dan Harrin
Dan Harrin15mo ago
create a new view that consumes that button