- add morph to relationship - add profile markup - modify page-heading.blade.php to accept center and end sections
13 lines
338 B
PHP
13 lines
338 B
PHP
@props(['variant' => ''])
|
|
@php
|
|
$variants = [
|
|
'neutral' => 'bg-primary-600 text-white',
|
|
'ghost' => 'bg-gray-100 text-black text-sm'
|
|
];
|
|
|
|
$variantClass = $variants[$variant] ?? '';
|
|
@endphp
|
|
<button {{$attributes->merge(['class' => "px-2 py-1 text-xs rounded-md font-medium hover:opacity-80 $variantClass"])}}>
|
|
{{$slot}}
|
|
</button>
|