Laravel - Blade Templates - Slot Attributes

Like Blade components, you may assign additional attributes to slots such as CSS class names:

    
    
        
            Heading
        
    
        Content
    
        
            Footer
        
    
	

To interact with slot attributes, you may access the attributes property of the slot's variable. For more information on how to interact with attributes, please consult the documentation on component attributes:

    
    @props([
        'heading',
        'footer',
    ])
    
    
class(['border']) }}>

attributes->class(['text-lg']) }}> {{ $heading }}

{{ $slot }}
attributes->class(['text-gray-700']) }}> {{ $footer }}