app/components/tab_navigation_component.html.erb
<%= content_tag(:nav, aria: { label: }, **tag_options, class: [*tag_options[:class], 'tab-navigation']) do %>
<ul class="usa-button-group usa-button-group--segmented">
<% routes.each do |route| %>
<li class="usa-button-group__item">
<%= render ButtonComponent.new(
url: route[:path],
big: true,
outline: !is_current_path?(route[:path]),
aria: { current: is_current_path?(route[:path]) ? 'page' : nil },
).with_content(route[:text]) %>
</li>
<% end %>
</ul>
<% end %>