@props(['active' => false, 'href' => null])
@php
$classes = 'inline-flex h-8 items-center rounded-md px-3 text-xs font-medium transition-colors '
.($active ? 'bg-brand-soft text-brand-text' : 'text-fg-2 hover:bg-surface-2 hover:text-fg');
@endphp
@if ($href)
merge(['class' => $classes]) }}>{{ $slot }}
@else
@endif