Example of Blade components in spatie/spatie.be

File resources/views/components/label.blade.php (link to Github)
<label class="font-semibold text-sm opacity-75" {{ $attributes }}>
    {{ $slot }}
</label>
File resources/views/front/profile/profile.blade.php (link to Github)
<x-field>
       <x-label for="name">Your name</x-label>
       <input class="form-input" type="text" name="name" id="name" value="{{ old('name', auth()->user()->name) }}">
       @error('name')
              <div class="text-pink-dark">{{ $message }}</div>
       @enderror
</x-field>

<x-field>
       <x-label for="email">Your email</x-label>
       <input class="form-input" type="email" name="email" id="email" value="{{ old('email', auth()->user()->email) }}">
       @error('email')
              <div class="text-pink-dark">{{ $message }}</div>
       @enderror
</x-field>

Additional resources on blade components: