{{-- A tag entity, separate from system status pills. No database access here. --}} @props(['tag', 'href' => null, 'heading' => false]) @php $name = (string) ($tag->name ?? ''); $colors = \App\Support\TagColor::presentation($tag->color ?? null); $style = '--nh-tag-color:'.$colors['color'].';--nh-tag-bg:'.$colors['background'].';--nh-tag-ink:'.$colors['ink'].';--nh-tag-border:'.$colors['border']; @endphp @if ($href !== null)@endif class(['nh-tag-pill', 'nh-tag-heading' => $heading])->merge(['style' => $style, 'title' => $name]) }}>{{ $name }} @if ($href !== null)@endif