Custom field layout component does not pass $extraAttributes to blade

Hi, I followed the instructions here to create a custom layout component: https://filamentphp.com/docs/2.x/forms/layout#building-custom-layout-components in the generated blade there is an $extraAttributes variable, but I cannot pass it via the form builder as you would expect - what is missing here? Thanks ```php CustomComponent::make() ->extraAttributes(['class' => 'not-passed-to-blade']) ->schema([])
Filament
Layout - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
1 Reply
LeandroFerreira
LeandroFerreira13mo ago
<div {{ $attributes->merge($getExtraAttributes()) }}>
{{ $getChildComponentContainer() }}
</div>
<div {{ $attributes->merge($getExtraAttributes()) }}>
{{ $getChildComponentContainer() }}
</div>