Skip to content

Commit

Permalink
refactor: allow customising external link component icon (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored Aug 3, 2023
1 parent 9909bb8 commit 6b81035
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/views/external-link.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
'innerClass' => '',
'small' => false,
'noIcon' => false,
'iconClass' => 'inline relative -top-1 flex-shrink-0 mt-1 ml-0.5 text-theme-secondary-500',
'iconSize' => 'xs',
])

<a
Expand All @@ -20,8 +22,8 @@ class="{{ $class }}"
@unless($noIcon)
<x-ark-icon
name="arrows.arrow-external"
size="xs"
class="inline relative -top-1 flex-shrink-0 mt-1 ml-0.5 text-theme-secondary-500"
:size="$iconSize"
:class="$iconClass"
/>
@endunless
</a>

0 comments on commit 6b81035

Please sign in to comment.