Skip to content

Commit

Permalink
Refactor to class directive
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 8, 2024
1 parent 9e62334 commit 8b467ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@props(['items', 'isChild' => false])

@if(! empty($items))
<ul class="{{ $isChild ? 'pl-2' : 'table-of-contents pb-3' }}">
<ul @class(['pl-2' ? $isChild : 'table-of-contents pb-3'])>
@foreach($items as $item)
<li class="my-0.5">
<a href="#{{ $item['identifier'] }}" class="-ml-8 pl-8 opacity-80 hover:opacity-100 hover:bg-gray-200/20 transition-all duration-300">
Expand Down

0 comments on commit 8b467ab

Please sign in to comment.