Is it possible to use parameters in components or partials within blades?
@hassub('button')
@group('button')
@sub('title') {{-- it works --}}
@sub('href') {{-- it works --}}
@sub('icon') {{-- it works --}}
<div class="s-header-banner__button">
<x-button label="{{ @sub('title') }}" href="{{ @sub('href') }}" icon="{{ @svg('pixelarticons-heart') }}" />
{{-- does not works --}}
@include('components.button', [
'label' => @sub('title')
])
{{-- does not works --}}
</div>
@endgroup
@endsub
Is it possible to use parameters in components or partials within blades?
I get different errors.