0

I want to do this but can't find any documentation about how to render components inside components

   <x-accordion>
            <x-accordion-tab />
            <x-accordion-tab />
            <x-accordion-tab />
            <x-accordion-tab />
            <x-accordion-tab />
   </x-accordion>

Accordion

<div class="accordion-tabs">

</div>

Accordion Tab

<div class="accordion-tab">
    <input type="checkbox" id="chck1" class="accordion-nav">
    <label class="accordion-tab-label" for="chck1">Item 1</label>
    <div class="accordion-tab-content">
        Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ipsum, reiciendis!
    </div>
</div>

1 Answer 1

3

It's blade#slots

<div class="accordion-tabs">
     {{ $slot }}
</div>
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks... I feel stupid cause i was just looking at slots but I thought this was just html content. Documentation is really lacking

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.