@props([ 'title' => '', 'url' => '#', 'size' => 'md', 'icon' => null, 'role' => 'button', // link | button 'variant' => 'primary', // optional (primary, secondary, dll) ]) @php $hasText = !$slot->isEmpty(); $isButton = $role === 'button' && $hasText; $tooltip = $title; $baseClass = $isButton ? 'fluent-button fluent-button-' . $variant : 'fluent-action-button fluent-action-button-' . $variant; @endphp @if($role === 'link') merge(['class' => $baseClass]) }} title="{{ $tooltip }}" > @else merge(['class' => $baseClass]) }} title="{{ $tooltip }}" > @endif @if($icon) @endif @if($hasText) {{ $slot }} @endif