{{--
Segment tabs (DESIGN.md Navigation and app shell): sibling views of one section.
Props: items (list of ['label' => ..., 'href' => ..., 'current' => bool]; the first current one gets aria-current="page"),
label (accessible name of the tab row, usually the section name).
--}}
@props(['items' => [], 'label'])
@php
$currentKey = collect($items)->search(fn (array $item) => ! empty($item['current']));
@endphp
@once
@push('scripts')
@endpush
@endonce