updated to laravel 11
This commit is contained in:
16
resources/views/components/heading.blade.php
Normal file
16
resources/views/components/heading.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@php
|
||||
$id = Str::slug($slot);
|
||||
$uri = url()->current() . '#' . $id;
|
||||
@endphp
|
||||
|
||||
<a
|
||||
id={{ $id }}
|
||||
class="{{ twMerge('inline-block text-lg font-semibold my-3', $class ?? '') }}"
|
||||
x-data="{ show: false, uri: '{{ $uri }}' }"
|
||||
@mouseover="show = true"
|
||||
@mouseout="show = false"
|
||||
@click="SM.copyToClipboard('{{ $uri }}')"
|
||||
>
|
||||
{{ $slot }}
|
||||
<span x-show="show" class="text-primary-color-light pl-2">#</span>
|
||||
</a>
|
||||
Reference in New Issue
Block a user