first commit
This commit is contained in:
9
resources/views/components/nav-link.blade.php
Normal file
9
resources/views/components/nav-link.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
@props(['href', 'active' => false])
|
||||
|
||||
<a href="{{ $href }}" {{ $attributes->class([
|
||||
'flex items-center px-4 py-2 text-sm transition-colors',
|
||||
'bg-gray-900 text-white' => $active,
|
||||
'text-gray-300 hover:bg-gray-700 hover:text-white' => !$active
|
||||
]) }}>
|
||||
{{ $slot }}
|
||||
</a>
|
||||
Reference in New Issue
Block a user