{% load i18n %}

{% trans "Tabs" %}

{% trans "Use " %}dcr-tabs{% trans " to switch between related views or sections. The active tab gets an accent-colour underline indicator. Works with " %}<a>{% trans " links or " %}<button>{% trans " elements." %}

{% trans "Usage" %}

<nav class="dcr-tabs">
  <a href="..." class="dcr-tabs__tab active" aria-current="page">Layout</a>
  <a href="..." class="dcr-tabs__tab">Color tokens</a>
  <a href="..." class="dcr-tabs__tab">Components</a>
  <a href="..." class="dcr-tabs__tab">Patterns</a>
</nav>

{% trans "Usage" %}

<!-- Works with <button> for JS-driven tab panels -->
<nav class="dcr-tabs">
  <button class="dcr-tabs__tab" aria-selected="true">Overview</button>
  <button class="dcr-tabs__tab">Events</button>
  <button class="dcr-tabs__tab">Config</button>
</nav>