Skip to content

Commit

Permalink
Merge pull request #512 from helsingborg-stad/feat/button-slot
Browse files Browse the repository at this point in the history
feat: button slot
  • Loading branch information
NiclasNorin authored Feb 11, 2025
2 parents 039fe73 + 4055490 commit 7c918ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/php/Component/Button/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
@if ($type === 'submit' || $type === 'button')
<span class="{{$baseClass}}__loader"></span>
@endif

@if ($slotHasData)
{!! $slot !!}
@endif

@if($icon)
<span class="{{$baseClass}}__label-icon {{ $classListIcon }}">
@icon(['icon' => $icon, 'size' => $size, 'attributeList' => ['aria-hidden' => 'true']])
Expand Down

0 comments on commit 7c918ee

Please sign in to comment.