# route_tabs

URL: /chirp-ui/api/route_tabs/
Section: api
Description: Route-family tab helpers for chirp-ui route_tabs component.

Tab item: dict or object with ``href``, optional ``match`` (default ``"exact"``).
Full dict shape (from Chirp ``TabItem`` via ``_tab_item_to_shell_dict``):
``{ label, href, icon?, badge?, match? }``.

---

> For a complete page index, fetch /chirp-ui/llms.txt.

# route_tabs

Route-family tab helpers for chirp-ui route_tabs component.

Tab item: dict or object with ``href``, optional ``match`` (default ``"exact"``).
Full dict shape (from Chirp ``TabItem`` via ``_tab_item_to_shell_dict``):
``{ label, href, icon?, badge?, match? }``.

module

Route-family tab helpers for chirp-ui route_tabs component.

Tab item: dict or object with ``href``, optional ``match`` (default ``"exact"``).
Full dict shape (from Chirp ``TabItem`` via ``_tab_item_to_shell_dict``):
``{ label, href, icon?, badge?, match? }``.

_get_attr

function

Get href or match from tab (dict or object).

tab_is_active

function

Return True when tab matches current_path.

Tab must have href. Optionally has match: "exact" | "prefix".
Returns False when href is empty (prevents prefix match against all paths).
